pub enum BinaryError {
}Variants§
Io(Error)
InvalidToken(u8)
InvalidNode
NonStringKey
AttrParse(String)
MissingAttr(String)
InvalidUtf8(Utf8Error)
Zlib(String)
Jid(JidError)
UnexpectedEof
EmptyData
LeftoverData(usize)
AttrList(Vec<BinaryError>)
MaxDepthExceeded
Node nesting exceeded the recursion cap — a hostile frame trying to overflow the native stack, rejected before recursing.
PlanMismatch
The exact-marshal encode pass diverged from its size plan (byte count or hint-tape consumption) — an internal encoder bug, distinct from a malformed input node, surfaced instead of shipping corrupt bytes.
UnexpectedFormatByte(u8)
A packed payload did not start with an uncompressed format byte, so it
is not what marshal produces. Most often node bytes handed to a path
that expects the format byte in front of them.
Trait Implementations§
Source§impl Clone for BinaryError
impl Clone for BinaryError
Source§impl Debug for BinaryError
impl Debug for BinaryError
Source§impl Display for BinaryError
impl Display for BinaryError
Source§impl Error for BinaryError
impl Error for BinaryError
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 From<Error> for BinaryError
impl From<Error> for BinaryError
Source§impl From<JidError> for BinaryError
impl From<JidError> for BinaryError
Auto Trait Implementations§
impl !RefUnwindSafe for BinaryError
impl !UnwindSafe for BinaryError
impl Forget for BinaryError
impl Freeze for BinaryErrorwhere
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<BinaryError>: Freeze,
impl Move for BinaryError
impl Send for BinaryError
impl Sync for BinaryError
impl Unpin for BinaryError
impl UnsafeUnpin for BinaryErrorwhere
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<BinaryError>: UnsafeUnpin,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more