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

The deadline was exceeded.

The context was canceled.

Methods

impl DoneReason
[src]

Convert the DoneReason into an error.

Trait Implementations

impl Copy for DoneReason
[src]

impl Clone for DoneReason
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for DoneReason
[src]

impl PartialEq for DoneReason
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for DoneReason
[src]

Formats the value using the given formatter.

impl Error for DoneReason
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for DoneReason
[src]

Formats the value using the given formatter. Read more