pub struct MessageDecoder<A: Attribute> { /* private fields */ }
Expand description

Message decoder.

Implementations

Makes a new MessageDecoder instance.

Trait Implementations

Formats the value using the given formatter. Read more

The type of items to be decoded.

Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more

Finishes the current decoding process and returns the decoded item. Read more

Returns the lower bound of the number of bytes needed to decode the next item. Read more

Returns true if there are no items to be decoded by the decoder at the next invocation of decode method, otherwise false. Read more

Returns the “default value” for a type. 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

Creates a decoder that converts decoded values by calling the given function. Read more

Creates a decoder that tries to convert decoded values by calling the given function. Read more

Creates a decoder for modifying decoding errors produced by self. Read more

Creates a decoder that enables conditional decoding. Read more

Creates a decoder for collecting decoded items. Read more

Creates a decoder that decodes n items by using self and collecting the result. Read more

Creates a decoder that consumes the specified number of bytes exactly. Read more

Creates a decoder that will omit decoding items if do_omit = true is specified. Read more

Creates a decoder that will fail if the number of consumed bytes exceeds bytes. Read more

Takes two decoders and creates a new decoder that decodes both items in sequence. Read more

Creates a decoder that makes it possible to slice the input byte sequence in arbitrary units. Read more

Creates a decoder that enables to peek decoded items before calling finish_decoding method. Read more

Creates a decoder that ignores EOS if there is no item being decoded. Read more

Decodes an item by consuming the whole part of the given bytes. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Consumes bytes from the given read buffer and proceeds the decoding process.

Decodes an item from the given reader. Read more

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.