pub enum CodecError {
NotParticipantFrame {
frame_type: u8,
},
Decode {
class: DecodeClass,
},
UnsupportedVersion {
presented: ProtocolVersion,
supported: ProtocolVersion,
},
OutputTooSmall {
required: usize,
available: usize,
},
LengthOverflow,
InvalidValue,
InvalidFrameLimit {
max_frame_bytes: u64,
},
}Expand description
Deterministic participant codec failure.
Variants§
NotParticipantFrame
The generic outer type is not assigned to participant traffic.
Decode
A structural body or framing failure with the canonical decode class.
Fields
§
class: DecodeClassExact failure class.
UnsupportedVersion
The concrete participant version differs from v1.0.
Fields
§
presented: ProtocolVersionVersion read from the structural prefix.
§
supported: ProtocolVersionVersion supported by this codec.
OutputTooSmall
Caller-provided encoding storage is too short.
LengthOverflow
A body or complete frame cannot fit its canonical u32 length field.
InvalidValue
A typed value violates a field-domain invariant.
InvalidFrameLimit
A negotiated complete-frame limit lies outside 16..=FRAME_MAX.
Trait Implementations§
Source§impl Clone for CodecError
impl Clone for CodecError
Source§fn clone(&self) -> CodecError
fn clone(&self) -> CodecError
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 CodecError
Source§impl Debug for CodecError
impl Debug for CodecError
impl Eq for CodecError
Source§impl PartialEq for CodecError
impl PartialEq for CodecError
impl StructuralPartialEq for CodecError
Auto Trait Implementations§
impl Freeze for CodecError
impl RefUnwindSafe for CodecError
impl Send for CodecError
impl Sync for CodecError
impl Unpin for CodecError
impl UnsafeUnpin for CodecError
impl UnwindSafe for CodecError
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