pub trait Message:
'static
+ Send
+ Sync
+ AsyncDecodable
+ AsyncEncodable {
const NAME: &'static str;
const MAX_BYTES: u64;
const METERING_SCORE: u64;
const METERING_CONFIGURATION: MeteringConfiguration;
}Expand description
Generic message template.
Required Associated Constants§
const NAME: &'static str
Sourceconst METERING_SCORE: u64
const METERING_SCORE: u64
Message metering score value. Set to 0 for no impact in metering.
Sourceconst METERING_CONFIGURATION: MeteringConfiguration
const METERING_CONFIGURATION: MeteringConfiguration
Message metering configuration for rate limit.
Use MeteringConfiguration::default() for no limit.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.