pub enum ConversationEventDecodeError {
Truncated {
required: usize,
available: usize,
},
InvalidMagic,
UnsupportedCodec {
major: u16,
minor: u16,
},
UnknownEventKind {
tag: u16,
},
NonCanonicalLength {
declared_body_len: u32,
actual_body_len: usize,
},
NonCanonicalBody {
tag: u16,
},
LengthOverflow,
}Expand description
Stable canonical event-decode failure.
Variants§
Truncated
Fewer bytes than the fixed envelope or selected field requires.
Fields
InvalidMagic
The event does not begin with the assigned LPCE magic prefix.
UnsupportedCodec
The event codec version is not supported by this crate.
UnknownEventKind
The private body tag is unassigned.
NonCanonicalLength
Declared and supplied body lengths differ, or the declared length is not the canonical length for the selected body kind.
Fields
NonCanonicalBody
A structurally complete body violates a canonical field invariant, such as a zero generation, a non-generation-one enrollment epoch, an unassigned Leave flag bit, or an invalid permanent Leave result.
LengthOverflow
A platform length conversion or offset addition overflowed.
Trait Implementations§
Source§impl Clone for ConversationEventDecodeError
impl Clone for ConversationEventDecodeError
Source§fn clone(&self) -> ConversationEventDecodeError
fn clone(&self) -> ConversationEventDecodeError
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 ConversationEventDecodeError
Source§impl Debug for ConversationEventDecodeError
impl Debug for ConversationEventDecodeError
impl Eq for ConversationEventDecodeError
impl StructuralPartialEq for ConversationEventDecodeError
Auto Trait Implementations§
impl Freeze for ConversationEventDecodeError
impl RefUnwindSafe for ConversationEventDecodeError
impl Send for ConversationEventDecodeError
impl Sync for ConversationEventDecodeError
impl Unpin for ConversationEventDecodeError
impl UnsafeUnpin for ConversationEventDecodeError
impl UnwindSafe for ConversationEventDecodeError
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