#[repr(u16)]pub enum DecodeClass {
Framing = 1,
UnknownDiscriminant = 2,
CanonicalEncoding = 3,
MissingRequiredField = 4,
InvalidField = 5,
}Expand description
Exhaustive participant structural decode classes.
Variants§
Framing = 1
Invalid outer frame flags, stream, or prefix length.
UnknownDiscriminant = 2
Inner discriminant is unassigned or wrong-direction.
CanonicalEncoding = 3
Complete selected shape contains trailing bytes.
MissingRequiredField = 4
Selected shape is missing required bytes.
InvalidField = 5
Selector, tag, or fixed scalar violates its domain.
Implementations§
Source§impl DecodeClass
impl DecodeClass
Sourcepub const fn wire_value(self) -> u16
pub const fn wire_value(self) -> u16
Returns the stable v1 wire value.
Trait Implementations§
Source§impl Clone for DecodeClass
impl Clone for DecodeClass
Source§fn clone(&self) -> DecodeClass
fn clone(&self) -> DecodeClass
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 DecodeClass
Source§impl Debug for DecodeClass
impl Debug for DecodeClass
impl Eq for DecodeClass
Source§impl From<DecodeClass> for u16
impl From<DecodeClass> for u16
Source§fn from(value: DecodeClass) -> Self
fn from(value: DecodeClass) -> Self
Converts to this type from the input type.
Source§impl Hash for DecodeClass
impl Hash for DecodeClass
Source§impl PartialEq for DecodeClass
impl PartialEq for DecodeClass
impl StructuralPartialEq for DecodeClass
Auto Trait Implementations§
impl Freeze for DecodeClass
impl RefUnwindSafe for DecodeClass
impl Send for DecodeClass
impl Sync for DecodeClass
impl Unpin for DecodeClass
impl UnsafeUnpin for DecodeClass
impl UnwindSafe for DecodeClass
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