[][src]Struct future_bus::FutureBus

pub struct FutureBus<T, S, R> where
    T: Send + Clone + 'static,
    S: Sink<T> + Unpin,
    R: Stream<Item = T> + Unpin
{ /* fields omitted */ }

The struct containing references to the receivers and at the same time the data source for the bus.

Methods

impl<T, S, R> FutureBus<T, S, R> where
    T: Send + Clone + 'static,
    S: Sink<T> + Unpin,
    R: Stream<Item = T> + Unpin
[src]

pub fn subscribe(&mut self) -> BusSubscriber<T, S, R>[src]

Create a new subscriber channel

Trait Implementations

impl<T, S, R> Sink<T> for FutureBus<T, S, R> where
    T: Send + Clone + 'static,
    S: Sink<T> + Unpin,
    R: Stream<Item = T> + Unpin
[src]

type Error = S::Error

The type of value produced by the sink when an error occurs.

Auto Trait Implementations

impl<T, S, R> Send for FutureBus<T, S, R> where
    S: Send + Sync

impl<T, S, R> Sync for FutureBus<T, S, R> where
    S: Send + Sync

impl<T, S, R> Unpin for FutureBus<T, S, R>

impl<T, S, R> !UnwindSafe for FutureBus<T, S, R>

impl<T, S, R> !RefUnwindSafe for FutureBus<T, S, R>

Blanket Implementations

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 = !

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.

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

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

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