Enum postcard::FeedResult[][src]

pub enum FeedResult<'a, T> {
    Consumed,
    OverFull(&'a [u8]),
    DeserError(&'a [u8]),
    Success {
        data: T,
        remaining: &'a [u8],
    },
}
Expand description

The result of feeding the accumulator.

Variants

Consumed

Consumed all data, still pending.

OverFull(&'a [u8])

Tuple Fields

Buffer was filled. Contains remaining section of input, if any.

DeserError(&'a [u8])

Tuple Fields

Reached end of chunk, but deserialization failed. Contains remaining section of input, if. any

Success

Fields

data: T

Deserialize data.

remaining: &'a [u8]

Remaining data left in the buffer after deserializing.

Deserialization complete. Contains deserialized data and remaining section of input, if any.

Trait Implementations

Writes the defmt representation of self to fmt.

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.