Struct yrs::Subscription
source · [−]pub struct Subscription<T> { /* private fields */ }
Expand description
A subscription handle to a custom user-defined callback for an event handler. When dropped, it will unsubscribe corresponding callback.
Trait Implementations
sourceimpl<T> Drop for Subscription<T>
impl<T> Drop for Subscription<T>
sourceimpl<T> Into<u32> for Subscription<T>
impl<T> Into<u32> for Subscription<T>
sourcefn into(self) -> SubscriptionId
fn into(self) -> SubscriptionId
Converts this type into the (usually inferred) input type.
Auto Trait Implementations
impl<T> !RefUnwindSafe for Subscription<T>
impl<T> !Send for Subscription<T>
impl<T> !Sync for Subscription<T>
impl<T> Unpin for Subscription<T>
impl<T> !UnwindSafe for Subscription<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more