pub struct Owner { /* private fields */ }Expand description
Owns a set of subscriptions and unsubscribes all of them when dropped.
Implementations§
Source§impl Owner
impl Owner
Sourcepub fn add(&mut self, subscription: Subscription)
pub fn add(&mut self, subscription: Subscription)
Take ownership of subscription.
Sourcepub fn track(&mut self, subscription: Subscription) -> &mut Owner
pub fn track(&mut self, subscription: Subscription) -> &mut Owner
Take ownership of subscription and return self for chaining.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Owner
impl !Send for Owner
impl !Sync for Owner
impl !UnwindSafe for Owner
impl Freeze for Owner
impl Unpin for Owner
impl UnsafeUnpin for Owner
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