pub struct BusSubscriber<T, S, R>{ /* private fields */ }
Expand description
A receiver of data from a FutureBus
. When it is dropped, the sender is
removed from the bus. Note that this means dropping a receiver causes a write access to the
bus, so it causes a lock.
Implementations§
Trait Implementations§
Source§impl<T, S, R> Drop for BusSubscriber<T, S, R>
impl<T, S, R> Drop for BusSubscriber<T, S, R>
Source§impl<T, S, R> FusedStream for BusSubscriber<T, S, R>
impl<T, S, R> FusedStream for BusSubscriber<T, S, R>
Source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the stream should no longer be polled.Source§impl<T, S, R> Stream for BusSubscriber<T, S, R>
impl<T, S, R> Stream for BusSubscriber<T, S, R>
Auto Trait Implementations§
impl<T, S, R> Freeze for BusSubscriber<T, S, R>where
R: Freeze,
impl<T, S, R> !RefUnwindSafe for BusSubscriber<T, S, R>
impl<T, S, R> Send for BusSubscriber<T, S, R>
impl<T, S, R> Sync for BusSubscriber<T, S, R>
impl<T, S, R> Unpin for BusSubscriber<T, S, R>
impl<T, S, R> !UnwindSafe for BusSubscriber<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