Struct messagebus::Bus[][src]

pub struct Bus { /* fields omitted */ }

Implementations

impl Bus[src]

pub fn build() -> BusBuilder[src]

Methods from Deref<Target = BusInner>

pub fn close(&self)[src]

pub async fn sync(&self)[src]

pub fn stats(&self) -> impl Iterator<Item = ReceiverStats> + '_[src]

pub fn try_send<M: Message>(&self, msg: M) -> Result<(), SendError<M>>[src]

pub fn send_blocking<M: Message>(&self, msg: M) -> Result<(), SendError<M>>[src]

pub async fn send<M: Message>(&self, msg: M) -> Result<(), SendError<M>>[src]

Trait Implementations

impl Clone for Bus[src]

impl Deref for Bus[src]

type Target = BusInner

The resulting type after dereferencing.

Auto Trait Implementations

impl !RefUnwindSafe for Bus[src]

impl Send for Bus[src]

impl Sync for Bus[src]

impl Unpin for Bus[src]

impl !UnwindSafe for Bus[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.