pub struct WriterPumpGuard { /* private fields */ }Expand description
The spawned writer pump and the only strong frame sender, retired together on every exit path.
The sender lives here rather than beside the guard because the pump parks on
rx.recv() and leaves only when the last strong sender drops. A guard that
joined without dropping the sender would hang; keeping the two in one value
means the order cannot be got wrong, and does not depend on the declaration
order of two separate locals.
Trait Implementations§
Source§impl Drop for WriterPumpGuard
impl Drop for WriterPumpGuard
Auto Trait Implementations§
impl !Sync for WriterPumpGuard
impl Freeze for WriterPumpGuard
impl RefUnwindSafe for WriterPumpGuard
impl Send for WriterPumpGuard
impl Unpin for WriterPumpGuard
impl UnsafeUnpin for WriterPumpGuard
impl UnwindSafe for WriterPumpGuard
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