#[non_exhaustive]pub enum DecodeErrorCategory {
MalformedInput,
ResourceExhaustion,
}Expand description
Stable high-level decode error categories.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MalformedInput
The input is malformed or internally inconsistent.
ResourceExhaustion
The input exceeded an explicit resource budget.
Trait Implementations§
Source§impl Clone for DecodeErrorCategory
impl Clone for DecodeErrorCategory
Source§fn clone(&self) -> DecodeErrorCategory
fn clone(&self) -> DecodeErrorCategory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecodeErrorCategory
Source§impl Debug for DecodeErrorCategory
impl Debug for DecodeErrorCategory
impl Eq for DecodeErrorCategory
Source§impl PartialEq for DecodeErrorCategory
impl PartialEq for DecodeErrorCategory
Source§fn eq(&self, other: &DecodeErrorCategory) -> bool
fn eq(&self, other: &DecodeErrorCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecodeErrorCategory
Auto Trait Implementations§
impl Freeze for DecodeErrorCategory
impl RefUnwindSafe for DecodeErrorCategory
impl Send for DecodeErrorCategory
impl Sync for DecodeErrorCategory
impl Unpin for DecodeErrorCategory
impl UnsafeUnpin for DecodeErrorCategory
impl UnwindSafe for DecodeErrorCategory
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