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§
Source§impl Clone for UnknownValue
impl Clone for UnknownValue
Source§fn clone(&self) -> UnknownValue
fn clone(&self) -> UnknownValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UnknownValue
impl Debug for UnknownValue
Source§impl PartialEq for UnknownValue
impl PartialEq for UnknownValue
impl StructuralPartialEq for UnknownValue
Auto Trait Implementations§
impl !Freeze for UnknownValue
impl RefUnwindSafe for UnknownValue
impl Send for UnknownValue
impl Sync for UnknownValue
impl Unpin for UnknownValue
impl UnwindSafe for UnknownValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more