pub enum TransactionError {
AlreadySpent(Vec<u8>, u32),
DoubleSpend(String),
Crate(&'static str, String),
InsufficientFunds(u64, u64),
InvalidCoinbaseTransaction,
InvalidTransactionId(usize),
InvalidVariableSizeInteger(usize),
Message(String),
MissingOutpointScriptPublicKey,
MultipleCoinbaseTransactions(u32),
NullError(()),
}Variants§
AlreadySpent(Vec<u8>, u32)
DoubleSpend(String)
Crate(&'static str, String)
InsufficientFunds(u64, u64)
InvalidCoinbaseTransaction
InvalidTransactionId(usize)
InvalidVariableSizeInteger(usize)
Message(String)
MissingOutpointScriptPublicKey
MultipleCoinbaseTransactions(u32)
NullError(())
Trait Implementations§
Source§impl Debug for TransactionError
impl Debug for TransactionError
Source§impl Display for TransactionError
impl Display for TransactionError
Source§impl Error for TransactionError
impl Error for TransactionError
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<&'static str> for TransactionError
impl From<&'static str> for TransactionError
Source§impl From<()> for TransactionError
impl From<()> for TransactionError
Source§impl From<Error> for TransactionError
impl From<Error> for TransactionError
Source§impl From<FromHexError> for TransactionError
impl From<FromHexError> for TransactionError
Source§fn from(error: FromHexError) -> Self
fn from(error: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<ParseBoolError> for TransactionError
impl From<ParseBoolError> for TransactionError
Source§fn from(error: ParseBoolError) -> Self
fn from(error: ParseBoolError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for TransactionError
impl From<ParseIntError> for TransactionError
Source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for BlockError
impl From<TransactionError> for BlockError
Source§fn from(error: TransactionError) -> Self
fn from(error: TransactionError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for ConsensusError
impl From<TransactionError> for ConsensusError
Source§fn from(error: TransactionError) -> Self
fn from(error: TransactionError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for LedgerError
impl From<TransactionError> for LedgerError
Source§fn from(error: TransactionError) -> Self
fn from(error: TransactionError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for RpcError
impl From<TransactionError> for RpcError
Source§fn from(error: TransactionError) -> Self
fn from(error: TransactionError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for ServerError
impl From<TransactionError> for ServerError
Source§fn from(error: TransactionError) -> Self
fn from(error: TransactionError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for StorageError
impl From<TransactionError> for StorageError
Source§fn from(error: TransactionError) -> Self
fn from(error: TransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransactionError
impl RefUnwindSafe for TransactionError
impl Send for TransactionError
impl Sync for TransactionError
impl Unpin for TransactionError
impl UnwindSafe for TransactionError
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