pub struct Subscription { /* private fields */ }Expand description
Handle returned by on_* methods. Call unsubscribe() to remove the handler.
Implementations§
Source§impl Subscription
impl Subscription
Sourcepub fn unsubscribe(self)
pub fn unsubscribe(self)
Remove the handler. Safe to call multiple times (subsequent calls are no-ops).
Trait Implementations§
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