Enum io_context::DoneReason
[−]
[src]
pub enum DoneReason { DeadlineExceeded, Canceled, }
The reason why a context was stopped, see Context.done
. This "error" can
be turned into an io::Error
by using the Into
trait
(From
<DoneReason>
is implemented for io::Error
).
Variants
DeadlineExceeded
The deadline was exceeded.
Canceled
The context was canceled.
Methods
impl DoneReason
[src]
fn into_error<E>(self) -> E where
E: From<Error>,
E: From<Error>,
Convert the DoneReason
into an error.
Trait Implementations
impl Copy for DoneReason
[src]
impl Clone for DoneReason
[src]
fn clone(&self) -> DoneReason
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for DoneReason
[src]
impl PartialEq for DoneReason
[src]
fn eq(&self, __arg_0: &DoneReason) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Debug for DoneReason
[src]
impl Error for DoneReason
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more