pub struct Event { /* private fields */ }Expand description
An event detected by a poller.
Implementations§
Source§impl Event
impl Event
Sourcepub fn is_readable(&self) -> bool
pub fn is_readable(&self) -> bool
Indicates read readiness.
Sourcepub fn is_writable(&self) -> bool
pub fn is_writable(&self) -> bool
Indicates write readiness.
Sourcepub fn is_error(&self) -> bool
pub fn is_error(&self) -> bool
Indicates that an error was received.
This event can only occur if a RawFd is polled.
Sourcepub fn is_priority(&self) -> bool
pub fn is_priority(&self) -> bool
Indicates that there is urgent data to be read.
This event can only occur if a RawFd is polled.
Trait Implementations§
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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