pub enum Error {
Show 22 variants
Redb(Box<Error>),
Database(Box<DatabaseError>),
Transaction(Box<TransactionError>),
Commit(Box<CommitError>),
Table(Box<TableError>),
Storage(Box<StorageError>),
Upgrade(Box<UpgradeError>),
Serde(Error),
ParseInt(ParseIntError),
CDKDatabase(Error),
CDKMintUrl(Error),
CDK(Error),
Io(Error),
CDKNUT00(Error),
CDKNUT02(Error),
DHKE(Error),
UnknownMintInfo,
UnknownQuoteTTL,
UnknownY,
UnknownQuote,
UnknownDatabaseVersion,
Duplicate,
}Expand description
Redb Database Error
Variants§
Redb(Box<Error>)
Redb Error
Database(Box<DatabaseError>)
Redb Database Error
Transaction(Box<TransactionError>)
Redb Transaction Error
Commit(Box<CommitError>)
Redb Commit Error
Table(Box<TableError>)
Redb Table Error
Storage(Box<StorageError>)
Redb Storage Error
Upgrade(Box<UpgradeError>)
Upgrade Transaction Error
Serde(Error)
Serde Json Error
ParseInt(ParseIntError)
Parse int Error
CDKDatabase(Error)
CDK Database Error
CDKMintUrl(Error)
CDK Mint Url Error
CDK(Error)
CDK Error
Io(Error)
IO Error
CDKNUT00(Error)
NUT00 Error
CDKNUT02(Error)
NUT02 Error
DHKE(Error)
DHKE Error
UnknownMintInfo
Unknown Mint Info
UnknownQuoteTTL
Unknown quote ttl
UnknownY
Unknown Proof Y
UnknownQuote
Unknown Quote
UnknownDatabaseVersion
Unknown Database Version
Duplicate
Duplicate
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<Box<CommitError>> for Error
impl From<Box<CommitError>> for Error
Source§fn from(source: Box<CommitError>) -> Self
fn from(source: Box<CommitError>) -> Self
Converts to this type from the input type.
Source§impl From<Box<DatabaseError>> for Error
impl From<Box<DatabaseError>> for Error
Source§fn from(source: Box<DatabaseError>) -> Self
fn from(source: Box<DatabaseError>) -> Self
Converts to this type from the input type.
Source§impl From<Box<StorageError>> for Error
impl From<Box<StorageError>> for Error
Source§fn from(source: Box<StorageError>) -> Self
fn from(source: Box<StorageError>) -> Self
Converts to this type from the input type.
Source§impl From<Box<TableError>> for Error
impl From<Box<TableError>> for Error
Source§fn from(source: Box<TableError>) -> Self
fn from(source: Box<TableError>) -> Self
Converts to this type from the input type.
Source§impl From<Box<TransactionError>> for Error
impl From<Box<TransactionError>> for Error
Source§fn from(source: Box<TransactionError>) -> Self
fn from(source: Box<TransactionError>) -> Self
Converts to this type from the input type.
Source§impl From<Box<UpgradeError>> for Error
impl From<Box<UpgradeError>> for Error
Source§fn from(source: Box<UpgradeError>) -> Self
fn from(source: Box<UpgradeError>) -> Self
Converts to this type from the input type.
Source§impl From<CommitError> for Error
impl From<CommitError> for Error
Source§fn from(e: CommitError) -> Self
fn from(e: CommitError) -> Self
Converts to this type from the input type.
Source§impl From<DatabaseError> for Error
impl From<DatabaseError> for Error
Source§fn from(e: DatabaseError) -> Self
fn from(e: DatabaseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for Error
impl From<StorageError> for Error
Source§fn from(e: StorageError) -> Self
fn from(e: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<TableError> for Error
impl From<TableError> for Error
Source§fn from(e: TableError) -> Self
fn from(e: TableError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for Error
impl From<TransactionError> for Error
Source§fn from(e: TransactionError) -> Self
fn from(e: TransactionError) -> Self
Converts to this type from the input type.
Source§impl From<UpgradeError> for Error
impl From<UpgradeError> for Error
Source§fn from(e: UpgradeError) -> Self
fn from(e: UpgradeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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