Struct diny::Deserializer[][src]

pub struct Deserializer<F, R> {
    pub format: F,
    pub reader: R,
}
Expand description

A wrapper type around a specific (format)backend::FormatDecode and (reader)io::AsyncBufRead

Fields

format: F

The (format)backend::FormatDecode used for decoding

reader: R

The (reader)io::AsyncBufRead to read (deserialized)backend::AsyncDeserialize bytes from

Implementations

Instantiates a new (Deserializer) from the (format)backend::FormatDecode and (reader)io::AsyncBufRead

Converts the (Deserializer) into a stream of D’s

Deserializes a single object of type D

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.