pub struct CancelGuard { /* private fields */ }Expand description
RAII cancellation bridge for single-threaded pumps (no supervisor thread of their own to translate the hub). Arms a waiter that cancels each pipe when the hub fires; dropping the guard releases the waiter. The pump loop itself stays a blocking read: cancel arrives as EOF, never as a tick.
Implementations§
Trait Implementations§
Source§impl Drop for CancelGuard
impl Drop for CancelGuard
Auto Trait Implementations§
impl !RefUnwindSafe for CancelGuard
impl !Sync for CancelGuard
impl !UnwindSafe for CancelGuard
impl Freeze for CancelGuard
impl Send for CancelGuard
impl Unpin for CancelGuard
impl UnsafeUnpin for CancelGuard
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