pub enum WireValueIntoError {
UnexpectedType {
expected: WireType,
actual: WireType,
},
VarIntValueTooBigFor32Bit(u64),
}Expand description
Error when it is not possible to convert a WireValueRef
to a specific Protobuf type.
Variants§
UnexpectedType
Error if a WireValueRef is not WireValueRef::VarInt even though
it was expected to be one.
VarIntValueTooBigFor32Bit(u64)
Error if the value is too big for a 32 bit value.
Trait Implementations§
Source§impl Clone for WireValueIntoError
impl Clone for WireValueIntoError
Source§fn clone(&self) -> WireValueIntoError
fn clone(&self) -> WireValueIntoError
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 WireValueIntoError
impl Debug for WireValueIntoError
Source§impl Hash for WireValueIntoError
impl Hash for WireValueIntoError
Source§impl Ord for WireValueIntoError
impl Ord for WireValueIntoError
Source§fn cmp(&self, other: &WireValueIntoError) -> Ordering
fn cmp(&self, other: &WireValueIntoError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WireValueIntoError
impl PartialEq for WireValueIntoError
Source§impl PartialOrd for WireValueIntoError
impl PartialOrd for WireValueIntoError
impl Eq for WireValueIntoError
impl StructuralPartialEq for WireValueIntoError
Auto Trait Implementations§
impl Freeze for WireValueIntoError
impl RefUnwindSafe for WireValueIntoError
impl Send for WireValueIntoError
impl Sync for WireValueIntoError
impl Unpin for WireValueIntoError
impl UnwindSafe for WireValueIntoError
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