pub struct Subscription { /* private fields */ }Expand description
Guard for one subscription. Dropping it cancels delivery (through the
subscription’s cancel token); the callback itself stays allocated until
the session is destroyed. A receiver from crate::channel therefore
does not disconnect when the guard drops, only when the session does.
Implementations§
Trait Implementations§
Source§impl Debug for Subscription
impl Debug for Subscription
Source§impl Drop for Subscription
impl Drop for Subscription
Auto Trait Implementations§
impl !Send for Subscription
impl !Sync for Subscription
impl Freeze for Subscription
impl RefUnwindSafe 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