pub enum ObjectParseError {
MissingBlocks(Vec<BlockId>),
MissingRootKey,
InvalidBlockId,
InvalidChildren,
InvalidKeys,
InvalidHeader,
BlockDeserializeError,
ObjectDeserializeError,
MissingHeaderBlocks((Object, Vec<BlockId>)),
MalformedDag,
FilterDeserializationError,
}
Expand description
Object parsing errors
Variants§
MissingBlocks(Vec<BlockId>)
Missing blocks
MissingRootKey
Missing root key
InvalidBlockId
Invalid BlockId encountered in the tree
InvalidChildren
Too many or too few children of a block
InvalidKeys
Number of keys does not match number of children of a block
InvalidHeader
Invalid CommitHeader object content
BlockDeserializeError
Error deserializing content of a block
ObjectDeserializeError
Error deserializing content of the object
MissingHeaderBlocks((Object, Vec<BlockId>))
MalformedDag
FilterDeserializationError
Trait Implementations§
Source§impl Clone for ObjectParseError
impl Clone for ObjectParseError
Source§fn clone(&self) -> ObjectParseError
fn clone(&self) -> ObjectParseError
Returns a copy 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 ObjectParseError
impl Debug for ObjectParseError
Source§impl From<ObjectParseError> for FileError
impl From<ObjectParseError> for FileError
Source§fn from(e: ObjectParseError) -> Self
fn from(e: ObjectParseError) -> Self
Converts to this type from the input type.
Source§impl From<ObjectParseError> for NgError
impl From<ObjectParseError> for NgError
Source§fn from(e: ObjectParseError) -> Self
fn from(e: ObjectParseError) -> Self
Converts to this type from the input type.
Source§impl From<ObjectParseError> for ProtocolError
impl From<ObjectParseError> for ProtocolError
Source§fn from(_e: ObjectParseError) -> Self
fn from(_e: ObjectParseError) -> Self
Converts to this type from the input type.
Source§impl From<ObjectParseError> for VerifierError
impl From<ObjectParseError> for VerifierError
Source§fn from(e: ObjectParseError) -> Self
fn from(e: ObjectParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ObjectParseError
impl PartialEq for ObjectParseError
impl Eq for ObjectParseError
impl StructuralPartialEq for ObjectParseError
Auto Trait Implementations§
impl Freeze for ObjectParseError
impl RefUnwindSafe for ObjectParseError
impl Send for ObjectParseError
impl Sync for ObjectParseError
impl Unpin for ObjectParseError
impl UnwindSafe for ObjectParseError
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