Enum bilrost::DecodeErrorKind
source · #[non_exhaustive]pub enum DecodeErrorKind {
Show 13 variants
Truncated,
InvalidVarint,
TagOverflowed,
WrongWireType,
OutOfDomainValue,
InvalidValue,
ConflictingFields,
UnexpectedlyRepeated,
NotCanonical,
UnknownField,
RecursionLimitReached,
Oversize,
Other,
}
Expand description
Bilrost message decoding error types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Truncated
Decoded data was truncated.
InvalidVarint
Invalid varint. (The only invalid varints are ones that would encode values > u64::MAX
.)
TagOverflowed
A field key encoded a tag greater than u32::MAX
.
WrongWireType
A field’s wire type was encountered that cannot encode a valid value.
OutOfDomainValue
Value was out of domain for its type.
InvalidValue
Value was invalid, such as non-UTF-8 data in a String
field or an unsupported number of
items in a container.
ConflictingFields
Conflicting mutually exclusive fields.
UnexpectedlyRepeated
A field or part of a value occurred multiple times when it should not.
NotCanonical
A value was not encoded canonically. (Distinguished-mode error)
UnknownField
Unknown fields were encountered. (Distinguished-mode error)
RecursionLimitReached
Recursion limit was reached when parsing.
Oversize
Size of a length-delimited region exceeds what is supported on this platform.
Other
Something else.
Trait Implementations§
source§impl Clone for DecodeErrorKind
impl Clone for DecodeErrorKind
source§fn clone(&self) -> DecodeErrorKind
fn clone(&self) -> DecodeErrorKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DecodeErrorKind
impl Debug for DecodeErrorKind
source§impl Display for DecodeErrorKind
impl Display for DecodeErrorKind
source§impl From<&DecodeError> for DecodeErrorKind
impl From<&DecodeError> for DecodeErrorKind
source§fn from(value: &DecodeError) -> Self
fn from(value: &DecodeError) -> Self
source§impl From<&DecodeErrorKind> for DecodeErrorKind
impl From<&DecodeErrorKind> for DecodeErrorKind
source§fn from(value: &DecodeErrorKind) -> Self
fn from(value: &DecodeErrorKind) -> Self
source§impl From<DecodeError> for DecodeErrorKind
impl From<DecodeError> for DecodeErrorKind
source§fn from(value: DecodeError) -> Self
fn from(value: DecodeError) -> Self
source§impl From<DecodeErrorKind> for DecodeError
impl From<DecodeErrorKind> for DecodeError
source§fn from(kind: DecodeErrorKind) -> Self
fn from(kind: DecodeErrorKind) -> Self
source§impl Hash for DecodeErrorKind
impl Hash for DecodeErrorKind
source§impl PartialEq for DecodeErrorKind
impl PartialEq for DecodeErrorKind
source§fn eq(&self, other: &DecodeErrorKind) -> bool
fn eq(&self, other: &DecodeErrorKind) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for DecodeErrorKind
impl Eq for DecodeErrorKind
impl StructuralPartialEq for DecodeErrorKind
Auto Trait Implementations§
impl Freeze for DecodeErrorKind
impl RefUnwindSafe for DecodeErrorKind
impl Send for DecodeErrorKind
impl Sync for DecodeErrorKind
impl Unpin for DecodeErrorKind
impl UnwindSafe for DecodeErrorKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)