pub struct VariableByteIntegerDecoder;
Expand description

Variable byte integer decoder structure is help structure which implements function used to decode message lenghts in MQTT packet and other parts encoded into variable byte integer.

Implementations§

Decode function takes as paramater encoded integer represented as array of 4 unsigned numbers of exactly 1 Byte each -> 4 Bytes maximal same as maximal amount of bytes for variable byte encoding in MQTT.

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

Returns the argument unchanged.

Calls U::from(self).

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

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.