pub struct FutureBus<T, S, R>{ /* private fields */ }
Expand description
The struct containing references to the receivers and at the same time the data source for the bus.
Implementations§
Trait Implementations§
Source§impl<T, S, R> Sink<T> for FutureBus<T, S, R>
impl<T, S, R> Sink<T> for FutureBus<T, S, R>
Source§type Error = <S as Sink<T>>::Error
type Error = <S as Sink<T>>::Error
The type of value produced by the sink when an error occurs.
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink
to receive a value. Read moreSource§fn start_send(self: Pin<&mut Self>, item: T) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: T) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read moreAuto Trait Implementations§
impl<T, S, R> Freeze for FutureBus<T, S, R>
impl<T, S, R> !RefUnwindSafe for FutureBus<T, S, R>
impl<T, S, R> Send for FutureBus<T, S, R>
impl<T, S, R> Sync for FutureBus<T, S, R>
impl<T, S, R> Unpin for FutureBus<T, S, R>
impl<T, S, R> !UnwindSafe for FutureBus<T, S, R>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more