pub enum MergeError {
InvalidProof(InvalidProof),
UnrelatedBlocks {
base_root: Commitment,
merged_root: Commitment,
},
}
Expand description
Errors happening during the MerkleBlock::merge_reveal_path
procedure.
Variants§
InvalidProof(InvalidProof)
Invalid MerkleProof
data.
See InvalidProof
inner error type for the details.
Attempt to merge two unrelated MerkleBlock
s.
Trait Implementations§
Source§impl Clone for MergeError
impl Clone for MergeError
Source§fn clone(&self) -> MergeError
fn clone(&self) -> MergeError
Returns a duplicate 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 MergeError
impl Debug for MergeError
Source§impl Display for MergeError
impl Display for MergeError
Source§impl Error for MergeError
impl Error for MergeError
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 From<InvalidProof> for MergeError
impl From<InvalidProof> for MergeError
Source§fn from(v: InvalidProof) -> Self
fn from(v: InvalidProof) -> Self
Converts to this type from the input type.
Source§impl From<MergeError> for String
impl From<MergeError> for String
Source§fn from(err: MergeError) -> Self
fn from(err: MergeError) -> Self
Converts to this type from the input type.
Source§impl Hash for MergeError
impl Hash for MergeError
Source§impl PartialEq for MergeError
impl PartialEq for MergeError
impl Copy for MergeError
impl Eq for MergeError
impl StructuralPartialEq for MergeError
Auto Trait Implementations§
impl Freeze for MergeError
impl RefUnwindSafe for MergeError
impl Send for MergeError
impl Sync for MergeError
impl Unpin for MergeError
impl UnwindSafe for MergeError
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.