Struct async_prost::Frame[][src]

pub struct Frame<H, T> {
    pub header: Option<H>,
    pub body: Option<Either<Vec<u8>, T>>,
}
Expand description

Decoded frame from buffer

Fields

header: Option<H>

header of the frame

body: Option<Either<Vec<u8>, T>>

body of the frame

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

decode header(if exists) and body

encoded length

encode header and body, with length

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.