pub struct Subscription {
pub events: UnboundedReceiver<Event>,
/* private fields */
}Expand description
A live subscription: a stream of Events plus an unsubscribe handle.
Fields§
§events: UnboundedReceiver<Event>The receiver yielding pushed events for this subscription.
Implementations§
Source§impl Subscription
impl Subscription
Sourcepub fn unsubscribe(&self) -> Result<()>
pub fn unsubscribe(&self) -> Result<()>
Cancels the subscription: removes the local handler and sends an
unsubscribe frame.
Auto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnsafeUnpin for Subscription
impl UnwindSafe for Subscription
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