struct Wakers {
wake: Option<Waker>,
replaced: Option<Waker>,
}Expand description
Wakers taken out of a SimplexStream by a read or write.
A DuplexStream keeps its SimplexStreams behind a mutex, and wakes and
drops these wakers only after releasing it, as they may access the pipe.
The halves returned by simplex() are still polled under the mutex in
split.
Fields§
§wake: Option<Waker>The waker of the other side of the pipe, which needs to be woken.
replaced: Option<Waker>The previously registered waker, which was replaced by a new one.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Wakers
impl RefUnwindSafe for Wakers
impl Send for Wakers
impl Sync for Wakers
impl Unpin for Wakers
impl UnsafeUnpin for Wakers
impl UnwindSafe for Wakers
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