pub struct InvalidProof {
pub protocol_id: ProtocolId,
pub expected: u32,
pub actual: u32,
pub width: u32,
}
Expand description
Error constructing MPC Merkle tree due to invalid MerkleProof
data.
§Returned by
Fields§
§protocol_id: ProtocolId
The protocol id which position is mismatched.
expected: u32
The position in which the protocol should appear.
actual: u32
The position in which the protocol appears in the proof.
width: u32
The width of the MPC Merkle tree.
Trait Implementations§
Source§impl Clone for InvalidProof
impl Clone for InvalidProof
Source§fn clone(&self) -> InvalidProof
fn clone(&self) -> InvalidProof
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 InvalidProof
impl Debug for InvalidProof
Source§impl<'de> Deserialize<'de> for InvalidProof
impl<'de> Deserialize<'de> for InvalidProof
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InvalidProof
impl Display for InvalidProof
Source§impl Error for InvalidProof
impl Error for InvalidProof
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<InvalidProof> for String
impl From<InvalidProof> for String
Source§fn from(err: InvalidProof) -> Self
fn from(err: InvalidProof) -> Self
Converts to this type from the input type.
Source§impl Hash for InvalidProof
impl Hash for InvalidProof
Source§impl PartialEq for InvalidProof
impl PartialEq for InvalidProof
Source§impl Serialize for InvalidProof
impl Serialize for InvalidProof
impl Copy for InvalidProof
impl Eq for InvalidProof
impl StructuralPartialEq for InvalidProof
Auto Trait Implementations§
impl Freeze for InvalidProof
impl RefUnwindSafe for InvalidProof
impl Send for InvalidProof
impl Sync for InvalidProof
impl Unpin for InvalidProof
impl UnwindSafe for InvalidProof
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.