Struct tokio_serde_cbor::Decoder [] [src]

pub struct Decoder<Item> { /* fields omitted */ }

CBOR based decoder.

This decoder can be used with tokio_io's Framed to decode CBOR encoded frames. Anything that is serdes Deserialize can be decoded this way.

Methods

impl<'de, Item: Deserialize<'de>> Decoder<Item>
[src]

Creates a new decoder.

Trait Implementations

impl<Item: Clone> Clone for Decoder<Item>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Item: Debug> Debug for Decoder<Item>
[src]

Formats the value using the given formatter.

impl<'de, Item: Deserialize<'de>> Default for Decoder<Item>
[src]

Returns the "default value" for a type. Read more

impl<'de, Item: Deserialize<'de>> IoDecoder for Decoder<Item>
[src]

The type of decoded frames.

The type of unrecoverable frame decoding errors. Read more

Attempts to decode a frame from the provided buffer of bytes. Read more

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more