pub struct ListSubscription { /* private fields */ }Expand description
A session’s standing interest in list changes, withdrawn on drop.
A guard rather than an explicit unsubscribe, because the moments a session ends — a dropped connection, an expired id, a client that closed its stream — are moments no handler is running to remember to call anything. Holding this in the session’s own state makes “the session is gone” and “the session is no longer told” the same event.
Trait Implementations§
Source§impl Debug for ListSubscription
impl Debug for ListSubscription
Source§impl Drop for ListSubscription
impl Drop for ListSubscription
Auto Trait Implementations§
impl !RefUnwindSafe for ListSubscription
impl !UnwindSafe for ListSubscription
impl Freeze for ListSubscription
impl Send for ListSubscription
impl Sync for ListSubscription
impl Unpin for ListSubscription
impl UnsafeUnpin for ListSubscription
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