pub trait Topic {
type Item: Serialize + Deserialize + Send + Sync + Debug + 'static;
const BUFFER_SIZE: usize;
const NAME: &'static str;
const VALIDATE: bool;
const MAX_MESSAGES: u32;
const TIME_WINDOW: Duration = DEFAULT_GOSSIPSUB_RATE_LIMIT_TIME_WINDOW;
const MAX_MESSAGE_SIZE: usize = MIN_SUPPORTED_MSG_SIZE;
}Required Associated Constants§
const BUFFER_SIZE: usize
const NAME: &'static str
const VALIDATE: bool
const MAX_MESSAGES: u32
Provided Associated Constants§
const TIME_WINDOW: Duration = DEFAULT_GOSSIPSUB_RATE_LIMIT_TIME_WINDOW
Sourceconst MAX_MESSAGE_SIZE: usize = MIN_SUPPORTED_MSG_SIZE
const MAX_MESSAGE_SIZE: usize = MIN_SUPPORTED_MSG_SIZE
Maximum size in bytes of a serialized message on this topic. Larger messages are dropped before they are deserialized.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".