pub struct SubscriptionCloseHandle { /* private fields */ }Expand description
Externally-holdable close switch for one LifecycleSubscription.
Implementations§
Source§impl SubscriptionCloseHandle
impl SubscriptionCloseHandle
Sourcepub fn close(&self)
pub fn close(&self)
Closes the subscription and wakes every blocked receiver. Idempotent; a no-op once the subscription itself has dropped.
A poisoned subscriber lock cannot mark the queue closed, but blocked
receivers are still woken and then observe their own typed
EventReceiveError::Poisoned — the failure is propagated at the
receive surface, never swallowed silently.
Auto Trait Implementations§
impl Freeze for SubscriptionCloseHandle
impl RefUnwindSafe for SubscriptionCloseHandle
impl Send for SubscriptionCloseHandle
impl Sync for SubscriptionCloseHandle
impl Unpin for SubscriptionCloseHandle
impl UnsafeUnpin for SubscriptionCloseHandle
impl UnwindSafe for SubscriptionCloseHandle
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