#[non_exhaustive]pub enum DnodeError {
OutOfSpace,
BadMagic,
BadNumber,
MissingCrlf,
BadType,
TruncatedData,
}Expand description
Errors that can be raised when encoding or parsing a DNODE header without going through the streaming state machine.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OutOfSpace
Buffer too small to encode the header.
BadMagic
Header does not begin with the magic literal.
BadNumber
Numeric field could not be parsed.
MissingCrlf
Trailing CRLF missing.
BadType
Type discriminator out of range.
TruncatedData
Inline data shorter than the declared mlen.
Trait Implementations§
Source§impl Clone for DnodeError
impl Clone for DnodeError
Source§fn clone(&self) -> DnodeError
fn clone(&self) -> DnodeError
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 DnodeError
impl Debug for DnodeError
Source§impl From<DnodeError> for NetError
impl From<DnodeError> for NetError
Source§fn from(value: DnodeError) -> Self
fn from(value: DnodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DnodeError
impl PartialEq for DnodeError
Source§fn eq(&self, other: &DnodeError) -> bool
fn eq(&self, other: &DnodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DnodeError
impl Eq for DnodeError
impl StructuralPartialEq for DnodeError
Auto Trait Implementations§
impl Freeze for DnodeError
impl RefUnwindSafe for DnodeError
impl Send for DnodeError
impl Sync for DnodeError
impl Unpin for DnodeError
impl UnsafeUnpin for DnodeError
impl UnwindSafe for DnodeError
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.