[−][src]Struct future_bus::FutureBus
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]
T: Send + Clone + 'static,
S: Sink<T> + Unpin,
R: Stream<Item = T> + Unpin,
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]
T: Send + Clone + 'static,
S: Sink<T> + Unpin,
R: Stream<Item = T> + Unpin,
type Error = S::Error
The type of value produced by the sink when an error occurs.
fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Result<(), Self::Error>>
fn start_send(self: Pin<&mut Self>, item: T) -> Result<(), Self::Error>
[src]
fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Result<(), Self::Error>>
fn poll_close(
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Result<(), Self::Error>>
Auto Trait Implementations
impl<T, S, R> Send for FutureBus<T, S, R> where
S: Send + Sync,
S: Send + Sync,
impl<T, S, R> Sync for FutureBus<T, S, R> where
S: Send + Sync,
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,