pub enum PayloadDecodeError {
MissingSentinel,
Truncated,
InvalidMagic,
UnknownVersion(u8),
Empty,
TooManyChunks(usize),
EmptyChunk,
TrailingBytes(usize),
}Variants§
MissingSentinel
The payload does not start with the container sentinel — not a container at all.
Truncated
InvalidMagic
UnknownVersion(u8)
Empty
TooManyChunks(usize)
The declared chunk count exceeds MAX_CONTAINER_CHUNKS — corrupt or hostile.
EmptyChunk
A declared zero-length chunk (see encode_payload_chunks).
TrailingBytes(usize)
Trait Implementations§
Source§impl Clone for PayloadDecodeError
impl Clone for PayloadDecodeError
Source§fn clone(&self) -> PayloadDecodeError
fn clone(&self) -> PayloadDecodeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PayloadDecodeError
impl Debug for PayloadDecodeError
Source§impl Display for PayloadDecodeError
impl Display for PayloadDecodeError
Source§impl Error for PayloadDecodeError
impl Error for PayloadDecodeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PayloadDecodeError
impl PartialEq for PayloadDecodeError
impl Eq for PayloadDecodeError
impl StructuralPartialEq for PayloadDecodeError
Auto Trait Implementations§
impl Freeze for PayloadDecodeError
impl RefUnwindSafe for PayloadDecodeError
impl Send for PayloadDecodeError
impl Sync for PayloadDecodeError
impl Unpin for PayloadDecodeError
impl UnsafeUnpin for PayloadDecodeError
impl UnwindSafe for PayloadDecodeError
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