pub struct BlockingIoSourceReadiness {
pub readable: bool,
pub writable: bool,
pub read_closed: bool,
pub write_closed: bool,
pub error: bool,
}Expand description
Struct reflecting the readiness of a source file description.
Fields§
§readable: boolBoolean whether the source is currently readable.
writable: boolBoolean whether the source is currently writable.
read_closed: boolBoolean whether the read end of the source has been closed.
write_closed: boolBoolean whether the write end of the source has been closed.
error: boolBoolean whether the source currently has an error.
Implementations§
Source§impl BlockingIoSourceReadiness
impl BlockingIoSourceReadiness
pub fn empty() -> Self
Sourcefn fulfills_interest(&self, interest: &BlockingIoInterest) -> bool
fn fulfills_interest(&self, interest: &BlockingIoInterest) -> bool
Check whether the current readiness fulfills the blocking I/O interest of
interest.
This function also returns true if the error readiness is set
even when the requested interest might not be fulfilled.
Trait Implementations§
Source§impl BitOrAssign for BlockingIoSourceReadiness
impl BitOrAssign for BlockingIoSourceReadiness
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl Debug for BlockingIoSourceReadiness
impl Debug for BlockingIoSourceReadiness
Source§impl From<&BlockingIoSourceReadiness> for EpollReadiness
impl From<&BlockingIoSourceReadiness> for EpollReadiness
Source§fn from(readiness: &BlockingIoSourceReadiness) -> Self
fn from(readiness: &BlockingIoSourceReadiness) -> Self
Auto Trait Implementations§
impl Freeze for BlockingIoSourceReadiness
impl RefUnwindSafe for BlockingIoSourceReadiness
impl Send for BlockingIoSourceReadiness
impl Sync for BlockingIoSourceReadiness
impl Unpin for BlockingIoSourceReadiness
impl UnsafeUnpin for BlockingIoSourceReadiness
impl UnwindSafe for BlockingIoSourceReadiness
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 5 bytes