pub struct Subscription { /* private fields */ }Expand description
RAII guard for a subscriber callback.
Dropping the Subscription causes the associated callback to become
unreachable (the strong Rc is dropped, so the Weak in the
observable’s subscriber list will fail to upgrade on the next
notification cycle).
Implementations§
Source§impl Subscription
impl Subscription
Sourcepub fn composite(subscriptions: Vec<Subscription>) -> Self
pub fn composite(subscriptions: Vec<Subscription>) -> Self
Combine multiple subscriptions into a single composite subscription.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Subscription
impl !Send for Subscription
impl !Sync for Subscription
impl !UnwindSafe for Subscription
impl Forget for Subscription
impl Freeze for Subscription
impl Move for Subscription
impl Unpin for Subscription
impl UnsafeUnpin 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