Struct yrs::observer::Subscription
source · pub struct Subscription { /* private fields */ }
Expand description
Subscription handle returned by Observer::subscribe methods, which will unsubscribe corresponding callback when dropped.
If implicit callback unsubscribe on drop is undesired, this structure can be cast into [SubscriptionId] which is an identifier of the same subscription, which in turn must be used manually via [Observer::unsubscribe] to perform usubscribe.
Trait Implementations§
impl Send for Subscription
impl Sync for Subscription
Auto Trait Implementations§
impl Freeze for Subscription
impl !RefUnwindSafe for Subscription
impl Unpin 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