Struct async_io_traits::io::Readiness
source · pub struct Readiness(_);
Expand description
Describes which operations are ready for an IO resource.
Implementations
sourceimpl Readiness
impl Readiness
sourcepub fn hup(self) -> bool
pub fn hup(self) -> bool
The resource has hung up.
Note there may still be data to read.
Note that the user does not need to check this method, even if the resource has hung up,
the behaviour of non_blocking_read
and non_blocking_write
is defined and they should not
panic.
Note that the user does not need to request an interest in hup notifications, they may always
be returned
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Readiness
impl Send for Readiness
impl Sync for Readiness
impl Unpin for Readiness
impl UnwindSafe for Readiness
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more