pub enum IoTaskStatus {
Io,
Pause,
Stop,
}Expand description
Current status of the I/O state.
Variants§
Io
Work remains, the task should perform another I/O operation.
This reports that the connection still has work to do, not that the transport can accept or supply bytes right now. A task must re-arm transport readiness before the next operation. On the write side it is returned whenever output is still buffered, including after an attempt that made no progress.
Pause
Pause the task until the context wakes it.
Stop
Stop the task and release its transport resources.
Trait Implementations§
Source§impl Clone for IoTaskStatus
impl Clone for IoTaskStatus
Source§fn clone(&self) -> IoTaskStatus
fn clone(&self) -> IoTaskStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IoTaskStatus
Source§impl Debug for IoTaskStatus
impl Debug for IoTaskStatus
impl Eq for IoTaskStatus
Source§impl Hash for IoTaskStatus
impl Hash for IoTaskStatus
Source§impl PartialEq for IoTaskStatus
impl PartialEq for IoTaskStatus
impl StructuralPartialEq for IoTaskStatus
Auto Trait Implementations§
impl Freeze for IoTaskStatus
impl RefUnwindSafe for IoTaskStatus
impl Send for IoTaskStatus
impl Sync for IoTaskStatus
impl Unpin for IoTaskStatus
impl UnsafeUnpin for IoTaskStatus
impl UnwindSafe for IoTaskStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.