Enum protofish::decode::UnknownValue
source · [−]pub enum UnknownValue {
Varint(u128),
Fixed64(u64),
VariableLength(Bytes),
Fixed32(u32),
Invalid(u8, Bytes),
}
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(u8, 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for UnknownValue
impl Send for UnknownValue
impl Sync for UnknownValue
impl Unpin for UnknownValue
impl UnwindSafe for UnknownValue
Blanket Implementations
Mutably borrows from an owned value. Read more