pub struct Subscription { /* private fields */ }Expand description
The end of a listener’s life: dropping it stops the notifications.
Keep it for as long as the listening should last — in a State, alongside the thing
listened to; in an effect, returned as the cleanup.
Implementations§
Source§impl Subscription
impl Subscription
Trait Implementations§
Source§impl Drop for Subscription
impl Drop for Subscription
Auto Trait Implementations§
impl !RefUnwindSafe for Subscription
impl !Send for Subscription
impl !Sync for Subscription
impl !UnwindSafe for Subscription
impl Freeze 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