pub enum ClientResumeRecordDecodeError {
Truncated {
needed: usize,
remaining: usize,
},
InvalidMagic {
presented: [u8; 4],
},
UnsupportedVersion {
presented: u16,
},
LengthMismatch {
declared: u64,
actual: usize,
},
InvalidTag {
section: ClientResumeRecordSection,
tag: u8,
},
NestedCodec {
section: ClientResumeRecordSection,
source: Option<CodecError>,
},
InvalidAbandonmentRequest {
request: ClientDiscriminant,
},
TrailingBytes {
remaining: usize,
},
}Expand description
Typed canonical client-record decode failure.
Variants§
Truncated
Input ended before the requested number of bytes.
Fields
InvalidMagic
The four-byte client-record magic was not LPCR.
UnsupportedVersion
The client-record envelope version is unsupported.
LengthMismatch
Declared payload length differs from the exact remaining bytes.
InvalidTag
A closed section tag was unknown.
NestedCodec
A nested canonical participant frame was invalid or had the wrong direction.
Fields
§
section: ClientResumeRecordSectionFailing section.
§
source: Option<CodecError>Exact wire codec error when structural decode failed.
InvalidAbandonmentRequest
A serialized tokenless-after-crash abandonment carried an operation class that has a wire attempt token and therefore cannot use that resolution.
Fields
§
request: ClientDiscriminantRejected token-bearing request class.
TrailingBytes
Extra bytes followed the four exact sections.
Trait Implementations§
Source§impl Clone for ClientResumeRecordDecodeError
impl Clone for ClientResumeRecordDecodeError
Source§fn clone(&self) -> ClientResumeRecordDecodeError
fn clone(&self) -> ClientResumeRecordDecodeError
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 ClientResumeRecordDecodeError
impl Eq for ClientResumeRecordDecodeError
impl StructuralPartialEq for ClientResumeRecordDecodeError
Auto Trait Implementations§
impl Freeze for ClientResumeRecordDecodeError
impl RefUnwindSafe for ClientResumeRecordDecodeError
impl Send for ClientResumeRecordDecodeError
impl Sync for ClientResumeRecordDecodeError
impl Unpin for ClientResumeRecordDecodeError
impl UnsafeUnpin for ClientResumeRecordDecodeError
impl UnwindSafe for ClientResumeRecordDecodeError
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