pub struct PollResponse { /* private fields */ }
Expand description
Represents the bitmask of event flags produced for a PollRequest
when
passed to poll
.
Implementations§
Source§impl PollResponse
impl PollResponse
Sourcepub const fn raw_result(&self) -> c_short
pub const fn raw_result(&self) -> c_short
Returns the raw bitmask representing the events that the kernel reported. The meaning of this bitmask may be architecture-dependent.
Sourcepub const fn readable(&self) -> bool
pub const fn readable(&self) -> bool
Returns true if the response indicates that there is data to read.
Sourcepub const fn writable(&self) -> bool
pub const fn writable(&self) -> bool
Returns true if the response indicates that the file is writable.
This only indicates that some amount of writing is possible, but does not guarantee that a write of any given size will succeed.
Sourcepub const fn error(&self) -> bool
pub const fn error(&self) -> bool
Returns true if there is an error condition on the file descriptor.
This condition is also used for the write end of a pipe once the read end has been closed.
Sourcepub const fn hung_up(&self) -> bool
pub const fn hung_up(&self) -> bool
Returns true if the other end of a channel has been closed.
There might still be data in the read buffer, which can be read until reaching EOF.
Trait Implementations§
Source§impl Clone for PollResponse
impl Clone for PollResponse
Source§fn clone(&self) -> PollResponse
fn clone(&self) -> PollResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more