pub trait Broadcast: Sized + 'static {
type Payload: Clone + Send;
const BUFFER_SIZE: usize;
const DEBUG_NAME: &'static str;
}
Expand description
A multi-notifier, multi-subscriber notification
Required Associated Constants§
Sourceconst BUFFER_SIZE: usize
const BUFFER_SIZE: usize
The number of notifications that can be sent without waiting for the receiver
It must be at least 1
Sourceconst DEBUG_NAME: &'static str
const DEBUG_NAME: &'static str
Notification name in debug messages
Required Associated Types§
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.