pub struct Entry<'fd>(/* private fields */);Expand description
One native poll registration and the events the kernel reported for it.
Implementations§
Source§impl<'fd> Entry<'fd>
impl<'fd> Entry<'fd>
Sourcepub fn readable(fd: BorrowedFd<'fd>) -> Self
pub fn readable(fd: BorrowedFd<'fd>) -> Self
Registers one descriptor for readability.
Sourcepub fn writable(fd: BorrowedFd<'fd>) -> Self
pub fn writable(fd: BorrowedFd<'fd>) -> Self
Registers one descriptor for writability.
Sourcepub const fn is_ready(self) -> bool
pub const fn is_ready(self) -> bool
Whether the kernel reported any event for this registration.
Sourcepub const fn is_readable(self) -> bool
pub const fn is_readable(self) -> bool
Whether the kernel reported readability.
Trait Implementations§
Auto Trait Implementations§
impl<'fd> !Send for Entry<'fd>
impl<'fd> !Sync for Entry<'fd>
impl<'fd> Forget for Entry<'fd>
impl<'fd> Freeze for Entry<'fd>
impl<'fd> RefUnwindSafe for Entry<'fd>
impl<'fd> Unpin for Entry<'fd>
impl<'fd> UnsafeUnpin for Entry<'fd>
impl<'fd> UnwindSafe for Entry<'fd>
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