[][src]Enum protofish::decode::UnknownValue

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

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(Bytes)

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

impl Clone for UnknownValue[src]

impl Debug for UnknownValue[src]

impl PartialEq<UnknownValue> for UnknownValue[src]

impl StructuralPartialEq for UnknownValue[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.