pub struct Readiness { /* private fields */ }Expand description
The consumer’s end: put it in a poll set, drain it, re-read your state.
Implementations§
Source§impl Readiness
impl Readiness
Sourcepub fn drain(&self) -> Result<u64, Error>
pub fn drain(&self) -> Result<u64, Error>
Take every token the descriptor holds and return how many there
were. Never blocks; a drained descriptor answers Ok(0).
The count is a local wake count. It says nothing about how many things changed in shared memory, which is what the consumer must re-read for itself.
Trait Implementations§
Source§impl AsFd for Readiness
impl AsFd for Readiness
Source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
Auto Trait Implementations§
impl Freeze for Readiness
impl RefUnwindSafe for Readiness
impl Send for Readiness
impl Sync for Readiness
impl Unpin for Readiness
impl UnsafeUnpin for Readiness
impl UnwindSafe for Readiness
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