Enum snarkvm_dpc::errors::block::BlockError
source · [−]pub enum BlockError {
AnyhowError(Error),
BlockExists(String),
Crate(&'static str, String),
CRHError(CRHError),
MerkleError(MerkleError),
Message(String),
}
Variants
AnyhowError(Error)
BlockExists(String)
Crate(&'static str, String)
CRHError(CRHError)
MerkleError(MerkleError)
Message(String)
Trait Implementations
sourceimpl Debug for BlockError
impl Debug for BlockError
sourceimpl Display for BlockError
impl Display for BlockError
sourceimpl Error for BlockError
impl Error for BlockError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<BlockError> for Error
impl From<BlockError> for Error
sourcefn from(error: BlockError) -> Self
fn from(error: BlockError) -> Self
Performs the conversion.
sourceimpl From<BlockError> for PoSWError
impl From<BlockError> for PoSWError
sourcefn from(source: BlockError) -> Self
fn from(source: BlockError) -> Self
Performs the conversion.
sourceimpl From<CRHError> for BlockError
impl From<CRHError> for BlockError
sourceimpl From<MerkleError> for BlockError
impl From<MerkleError> for BlockError
sourcefn from(source: MerkleError) -> Self
fn from(source: MerkleError) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for BlockError
impl Send for BlockError
impl Sync for BlockError
impl Unpin for BlockError
impl !UnwindSafe for BlockError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more