Enum dbc::anchor::VerifyError
source · pub enum VerifyError<E: Error> {
Dbc(E),
Mpc(InvalidProof),
}Expand description
Errors verifying anchors.
Variants§
Trait Implementations§
source§impl<E: Clone + Error> Clone for VerifyError<E>
impl<E: Clone + Error> Clone for VerifyError<E>
source§fn clone(&self) -> VerifyError<E>
fn clone(&self) -> VerifyError<E>
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<'de, E> Deserialize<'de> for VerifyError<E>where
E: Deserialize<'de> + Error,
impl<'de, E> Deserialize<'de> for VerifyError<E>where
E: Deserialize<'de> + Error,
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<E: Error> Display for VerifyError<E>
impl<E: Error> Display for VerifyError<E>
source§impl<E: Error> Error for VerifyError<E>
impl<E: Error> Error for VerifyError<E>
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<E: Error> From<InvalidProof> for VerifyError<E>
impl<E: Error> From<InvalidProof> for VerifyError<E>
source§fn from(v: InvalidProof) -> Self
fn from(v: InvalidProof) -> Self
Converts to this type from the input type.
source§impl<E: Error> From<VerifyError<E>> for String
impl<E: Error> From<VerifyError<E>> for String
source§fn from(err: VerifyError<E>) -> Self
fn from(err: VerifyError<E>) -> Self
Converts to this type from the input type.
source§impl<E> Serialize for VerifyError<E>
impl<E> Serialize for VerifyError<E>
impl<E: Eq + Error> Eq for VerifyError<E>
impl<E: Error> StructuralPartialEq for VerifyError<E>
Auto Trait Implementations§
impl<E> Freeze for VerifyError<E>where
E: Freeze,
impl<E> RefUnwindSafe for VerifyError<E>where
E: RefUnwindSafe,
impl<E> Send for VerifyError<E>where
E: Send,
impl<E> Sync for VerifyError<E>where
E: Sync,
impl<E> Unpin for VerifyError<E>where
E: Unpin,
impl<E> UnwindSafe for VerifyError<E>where
E: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.