Struct Subscription
pub struct Subscription { /* private fields */ }Expand description
Owned subscription guard.
Dropping the value automatically unregisters the callback.
Implementations§
§impl Subscription
impl Subscription
pub fn unsubscribe(self) -> bool
pub fn unsubscribe(self) -> bool
Unregister immediately instead of waiting for drop.
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 !UnwindSafe for Subscription
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more