Enum diny::backend::StartDecodeStatus[][src]

pub enum StartDecodeStatus<Dta, Dec, Err> {
    Fini(Dta),
    Pending(Dec),
    Error(Err),
}
Expand description

Contains the resultant state of a decode opertation.

This is very simlar to the Poll enum, except that in the event that the operation is pending, the decode state required to resume the operation is returned.

Variants

Fini(Dta)

The operation has successfully completed decoding the data.

Tuple Fields of Fini

0: Dta
Pending(Dec)

The operation is pending and the provided decoder can be used to continue reading.

Tuple Fields of Pending

0: Dec
Error(Err)

The operation resulted in an error.

Tuple Fields of Error

0: Err

Implementations

Convenience method for functorially mapping either variant to a new status.

Convenience method for functorially mapping either variant to a new status.

Trait Implementations

Performs the conversion.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.