Struct evelyn::Bus[][src]

pub struct Bus<M, S, C> where
    M: Message,
    S: Subscription<Event = M>,
    C: TerminationCondition<M>, 
{ /* fields omitted */ }

A generic implementation of an event bus using std::sync::mpsc

Implementations

impl<M, S, C> Bus<M, S, C> where
    M: Message,
    S: Subscription<Event = M>,
    C: TerminationCondition<M>, 
[src]

pub fn new(cond: C) -> Self[src]

Trait Implementations

impl<M, S, C> EventDistributor for Bus<M, S, C> where
    M: Message + Debug,
    S: Subscription<Event = M> + Debug,
    C: TerminationCondition<M>, 
[src]

type Event = M

type Error = BusError

type EventSender = Sender<M>

type SubscriptionSender = Sender<S>

type TerminationCondition = C

Auto Trait Implementations

impl<M, S, C> !RefUnwindSafe for Bus<M, S, C>

impl<M, S, C> Send for Bus<M, S, C> where
    C: Send,
    M: Send,
    S: Send

impl<M, S, C> !Sync for Bus<M, S, C>

impl<M, S, C> Unpin for Bus<M, S, C> where
    C: Unpin,
    S: Unpin

impl<M, S, C> !UnwindSafe for Bus<M, S, C>

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, 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.