Struct diny::Serializer[][src]

pub struct Serializer<F, W> {
    pub format: F,
    pub writer: W,
}
Expand description

A wrapper type around a specific (format)backend::FormatEncode and (writer)io::AsyncWrite

Fields

format: F

The (format)backend::FormatEncode used for encoding

writer: W

The (writer)io::AsyncWrite to write (serialized)backend::AsyncSerialize bytes to

Implementations

Instantiates a new (Serializer) from the (format)backend::FormatEncode and (writer)io::AsyncWrite

Converts the (Deserializer) into a sink for D’s

Serializes 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.