pub enum FrontierError {
PositionMismatch {
expected_ommers: u8,
},
MaxDepthExceeded {
depth: u8,
},
}
Expand description
Validation errors that can occur during reconstruction of a Merkle frontier from its constituent parts.
Variants§
PositionMismatch
An error representing that the number of ommers provided in frontier construction does not the expected length of the ommers list given the position.
MaxDepthExceeded
An error representing that the position and/or list of ommers provided to frontier
construction would result in a frontier that exceeds the maximum statically allowed depth
of the tree. depth
is the minimum tree depth that would be required in order for that
tree to contain the position in question.
Trait Implementations§
source§impl Clone for FrontierError
impl Clone for FrontierError
source§fn clone(&self) -> FrontierError
fn clone(&self) -> FrontierError
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 FrontierError
impl Debug for FrontierError
source§impl PartialEq for FrontierError
impl PartialEq for FrontierError
source§fn eq(&self, other: &FrontierError) -> bool
fn eq(&self, other: &FrontierError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FrontierError
impl StructuralPartialEq for FrontierError
Auto Trait Implementations§
impl Freeze for FrontierError
impl RefUnwindSafe for FrontierError
impl Send for FrontierError
impl Sync for FrontierError
impl Unpin for FrontierError
impl UnwindSafe for FrontierError
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