pub struct Ready(/* private fields */);Expand description
What a readiness call found.
Implementations§
Source§impl Ready
impl Ready
Sourcepub const READ_CLOSED: Ready
pub const READ_CLOSED: Ready
The stream ended: reads answer zero from now on.
Sourcepub const WRITE_CLOSED: Ready
pub const WRITE_CLOSED: Ready
Writing failed: writes answer the error from now on.
pub fn is_empty(self) -> bool
pub fn is_readable(self) -> bool
pub fn is_writable(self) -> bool
pub fn is_read_closed(self) -> bool
pub fn is_write_closed(self) -> bool
Trait Implementations§
impl Copy for Ready
impl Eq for Ready
impl StructuralPartialEq for Ready
Auto Trait Implementations§
impl Freeze for Ready
impl RefUnwindSafe for Ready
impl Send for Ready
impl Sync for Ready
impl Unpin for Ready
impl UnsafeUnpin for Ready
impl UnwindSafe for Ready
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