Enum diny::backend::DecodeStatus[][src]

pub enum DecodeStatus<Dta, Dec> {
    Ready(Dta),
    Pending(Dec),
}
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

Ready(Dta)

The operation has successfully completed decoding the data.

Tuple Fields of Ready

0: Dta
Pending(Dec)

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

Tuple Fields of Pending

0: Dec

Implementations

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

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.

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.