pub struct SubscriptionHandle { /* private fields */ }Expand description
An opaque handle returned by EventSource::subscribe.
The source defines what the handle contains; the framework treats it as a
token whose Drop impl performs the unsubscription. Returning an empty
handle (via SubscriptionHandle::empty) is acceptable for sources that
outlive the application or do not support removal.
Implementations§
Source§impl SubscriptionHandle
impl SubscriptionHandle
Auto Trait Implementations§
impl !RefUnwindSafe for SubscriptionHandle
impl !Send for SubscriptionHandle
impl !Sync for SubscriptionHandle
impl !UnwindSafe for SubscriptionHandle
impl Freeze for SubscriptionHandle
impl Unpin for SubscriptionHandle
impl UnsafeUnpin for SubscriptionHandle
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