Enum async_codec::EncodeResult[][src]

pub enum EncodeResult<E> {
    Ok(usize),
    Err(E),
    Overflow(usize),
}
Expand description

The result of an Encode::encode call

Variants

Ok(usize)

Tuple Fields

0: usize

Item was successfully encoded and took usize bytes of the provided buffer.

Err(E)

Tuple Fields

0: E

There was an error encoding the item.

Overflow(usize)

Tuple Fields

0: usize

The encoded item would overflow the buffer.

May contain the needed buffer size to successfully hold the encoded item. The value 0 indicates that the needed buffer size is unknown.

Trait Implementations

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.

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.