pub struct Waker { /* private fields */ }Expand description
A self-pipe used to wake a Poller blocked in wait from another thread.
Register read_fd() in the poller for read-readiness; call wake() from any
thread to make the poll return; call drain() when the read end fires.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Waker
impl RefUnwindSafe for Waker
impl Unpin for Waker
impl UnsafeUnpin for Waker
impl UnwindSafe for Waker
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