Struct aversion::util::cbor::CborData[][src]

pub struct CborData<RW> { /* fields omitted */ }
Expand description

A DataSource and/or DataSink using the CBOR serialization format.

CborData works with any type that implements Read or Write. That includes files, network sockets, and memory buffers.

It implements the DataSource trait if the inner type implements Read, and implements the DataSink trait if the inner type implements Write.

Implementations

Create a new CborData.

Consume the CborData, returning the inner data type.

Trait Implementations

A user-defined error type. Read more

Write a header and message to the data sink. Read more

A user-defined error type. Read more

A user-defined header struct. Read more

Read a header from the data source. Read more

Read a message from the data source. Read more

An unknown message id was received. Read more

An unknown version of a known message was received. Read more

Expected a specific message type, but got a different message id. Read more

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

Read a specific message type from the DataSource. 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.