Enum snarkvm_dpc::errors::record::RecordError
source · [−]pub enum RecordError {
AccountError(AccountError),
AnyhowError(Error),
CommitmentError(CommitmentError),
Crate(&'static str, String),
CRHError(CRHError),
EncryptionError(EncryptionError),
FromHexError(FromHexError),
IncorrectComputeKey,
InvalidCommitment(String, String),
PRFError(PRFError),
SignatureError(SignatureError),
}
Variants
AccountError(AccountError)
AnyhowError(Error)
CommitmentError(CommitmentError)
Crate(&'static str, String)
CRHError(CRHError)
EncryptionError(EncryptionError)
FromHexError(FromHexError)
IncorrectComputeKey
InvalidCommitment(String, String)
PRFError(PRFError)
SignatureError(SignatureError)
Trait Implementations
sourceimpl Debug for RecordError
impl Debug for RecordError
sourceimpl Display for RecordError
impl Display for RecordError
sourceimpl Error for RecordError
impl Error for RecordError
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<AccountError> for RecordError
impl From<AccountError> for RecordError
sourcefn from(source: AccountError) -> Self
fn from(source: AccountError) -> Self
Performs the conversion.
sourceimpl From<CRHError> for RecordError
impl From<CRHError> for RecordError
sourceimpl From<CommitmentError> for RecordError
impl From<CommitmentError> for RecordError
sourcefn from(source: CommitmentError) -> Self
fn from(source: CommitmentError) -> Self
Performs the conversion.
sourceimpl From<EncryptionError> for RecordError
impl From<EncryptionError> for RecordError
sourcefn from(source: EncryptionError) -> Self
fn from(source: EncryptionError) -> Self
Performs the conversion.
sourceimpl From<FromHexError> for RecordError
impl From<FromHexError> for RecordError
sourcefn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Performs the conversion.
sourceimpl From<PRFError> for RecordError
impl From<PRFError> for RecordError
sourceimpl From<RecordError> for Error
impl From<RecordError> for Error
sourcefn from(error: RecordError) -> Self
fn from(error: RecordError) -> Self
Performs the conversion.
sourceimpl From<SignatureError> for RecordError
impl From<SignatureError> for RecordError
sourcefn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for RecordError
impl Send for RecordError
impl Sync for RecordError
impl Unpin for RecordError
impl !UnwindSafe for RecordError
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