Struct evelyn::Bus [−][src]
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]
M: Message,
S: Subscription<Event = M>,
C: TerminationCondition<M>,
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]
M: Message + Debug,
S: Subscription<Event = M> + Debug,
C: TerminationCondition<M>,
type Event = M
type Error = BusError
type EventSender = Sender<M>
type SubscriptionSender = Sender<S>
type TerminationCondition = C
fn serve_events(&mut self) -> Result<(), Self::Error>
[src]
fn get_event_sink(&self) -> Self::EventSender
[src]
fn get_subscrition_sink(&self) -> Self::SubscriptionSender
[src]
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,
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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,