pub struct WakeFd { /* private fields */ }Expand description
A level-triggered wake descriptor: readable from the first ring until
drain. A supervisor passes fd to wait_child_or; any thread rings it
after changing what the supervisor must re-check.
Implementations§
Source§impl WakeFd
impl WakeFd
pub fn new() -> Result<Self>
Sourcepub fn ring(&self)
pub fn ring(&self)
Make the descriptor readable. Only a write(2): no allocation or lock,
so a signal handler may call it. A full counter or pipe is already
readable, so a failed write loses nothing.
Sourcepub fn fd(&self) -> BorrowedFd<'_>
pub fn fd(&self) -> BorrowedFd<'_>
The descriptor to wait on; readable while rung and not drained.
Trait Implementations§
Auto Trait Implementations§
impl Forget for WakeFd
impl Freeze for WakeFd
impl Move for WakeFd
impl RefUnwindSafe for WakeFd
impl Send for WakeFd
impl Sync for WakeFd
impl Unpin for WakeFd
impl UnsafeUnpin for WakeFd
impl UnwindSafe for WakeFd
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