pub struct Completion<C> {
    pub context: C,
    pub ret: i32,
}
Expand description

The result of a completed request.

Type parameter C denotes the type of the “context” associated with the request.

Fields§

§context: C

The user-defined “context” that was associated with the request.

§ret: i32

0 on success, a negative errno value on error.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.