pub enum PickleError {
TooShort,
BadHeader {
declared: usize,
actual: usize,
},
Overrun,
BadLength(i32),
}Expand description
A malformed navigation payload. Surfaced as a typed error so the caller can count it as a warning rather than crash or emit a silently-wrong row.
Variants§
TooShort
The payload is too short to even hold the 4-byte Pickle length header.
BadHeader
The Pickle’s declared payload size exceeds the bytes actually present.
Overrun
A field’s length runs past the end of the Pickle.
BadLength(i32)
A length prefix was negative (corrupt).
Trait Implementations§
Source§impl Clone for PickleError
impl Clone for PickleError
Source§fn clone(&self) -> PickleError
fn clone(&self) -> PickleError
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 moreSource§impl Debug for PickleError
impl Debug for PickleError
Source§impl Display for PickleError
impl Display for PickleError
impl Eq for PickleError
Source§impl Error for PickleError
impl Error for PickleError
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 PickleError
impl PartialEq for PickleError
Source§fn eq(&self, other: &PickleError) -> bool
fn eq(&self, other: &PickleError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PickleError
Auto Trait Implementations§
impl Freeze for PickleError
impl RefUnwindSafe for PickleError
impl Send for PickleError
impl Sync for PickleError
impl Unpin for PickleError
impl UnsafeUnpin for PickleError
impl UnwindSafe for PickleError
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