pub struct Subscription<T: RoutableEvent> { /* private fields */ }Expand description
A live subscription to one target: a Stream of the events routed there.
Dropping it unsubscribes (and drops the target if it was the last one).
Trait Implementations§
Source§impl<T: RoutableEvent> Drop for Subscription<T>
impl<T: RoutableEvent> Drop for Subscription<T>
Source§impl<T: RoutableEvent> Stream for Subscription<T>
impl<T: RoutableEvent> Stream for Subscription<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Subscription<T>
impl<T> !UnwindSafe for Subscription<T>
impl<T> Freeze for Subscription<T>
impl<T> Send for Subscription<T>
impl<T> Sync for Subscription<T>
impl<T> Unpin for Subscription<T>
impl<T> UnsafeUnpin for Subscription<T>
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