BusHelpers

Trait BusHelpers 

Source
pub trait BusHelpers:
    Clone
    + Send
    + Sync
    + 'static {
    // Required methods
    fn bus_sub(prefix_latest: bool) -> Receiver<BusEvent<Self>>;
    fn bus_send(self);
    fn bus_latest() -> Option<BusEvent<Self>>;
}

Required Methods§

Source

fn bus_sub(prefix_latest: bool) -> Receiver<BusEvent<Self>>

Source

fn bus_send(self)

Source

fn bus_latest() -> Option<BusEvent<Self>>

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§

Source§

impl<T> BusHelpers for T
where T: BusType,