pub enum UnknownValue {
    Varint(u128),
    Fixed64(u64),
    VariableLength(Bytes),
    Fixed32(u32),
    Invalid(u8Bytes),
}
Expand description

Unknown value.

Variants

Varint(u128)

Unknown varint (wire type = 0).

Fixed64(u64)

Unknown 64-bit value (wire type = 1).

VariableLength(Bytes)

Unknown variable length value (wire type = 2).

Fixed32(u32)

Unknown 32-bit value (wire type = 5).

Invalid(u8Bytes)

Invalid value.

Invalid value is a value for which the wire type wasn’t valid. Encountering invalid wire type will result in the remaining bytes to be consumed from the current variable length stream as it is imposible to tell how large such invalid value is.

The decoding will continue after the current variable length value.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. 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.