Broadcast

Trait Broadcast 

Source
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§

Source

const BUFFER_SIZE: usize

The number of notifications that can be sent without waiting for the receiver

It must be at least 1

Source

const DEBUG_NAME: &'static str

Notification name in debug messages

Required Associated Types§

Source

type Payload: Clone + Send

Payload data type that will be sended with this notification

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.

Implementors§