pub enum Error {
Show 69 variants
NotEnoughFunds {
available: u64,
available_disp: String,
needed: u64,
needed_disp: String,
},
Fee(String),
LibTX(String),
Keychain(Error),
Transaction(Error),
ClientCallback(String),
Secp(Error),
CallbackImpl(&'static str),
Backend(String),
Restore,
Format(String),
Deser(Error),
IO,
Node,
WalletComms(String),
Hyper,
Uri,
Signature(String),
APIEncryption(String),
DuplicateTransactionId,
WalletSeedExists(String),
WalletSeedDoesntExist,
WalletSeedDecryption,
TransactionDoesntExist(String),
TransactionNotCancellable(String),
TransactionCancellationError(&'static str),
TransactionDumpError(&'static str),
TransactionAlreadyConfirmed,
TransactionAlreadyReceived(String),
TransactionBuildingNotCompleted(u32),
InvalidBIP32Depth,
AccountLabelAlreadyExists(String),
UnknownAccountLabel(String),
Committed(Error),
SlateVersionParse,
SlateSer,
SlateDeser,
SlateVersion(u16),
Compatibility(String),
KeychainDoesntExist,
Lifecycle(String),
InvalidKeychainMask,
TorProcess(String),
TorConfig(String),
ED25519Key(String),
PaymentProof(String),
PaymentProofRetrieval(String),
PaymentProofParsing(String),
AddressDecoding(String),
TransactionExpired,
SQLiteError(String),
InvalidBase58Character(char, usize),
InvalidBase58Length,
InvalidBase58Checksum,
InvalidBase58Version,
InvalidBase58Key,
NumberParsingError,
ClosedListener(String),
Encryption,
Decryption,
EpicboxAddressParsingError(String),
GenericError(String),
RequestError(String),
ArgumentError(String),
IOError(String),
CancelledError,
EpicboxReconnectLimit,
LibWallet(String),
NotFoundErr(String),
}Expand description
Error definition Wallet errors, mostly wrappers around underlying crypto or I/O errors.
Variants§
NotEnoughFunds
Fields
Not enough funds
Fee(String)
Fee error
LibTX(String)
LibTX Error
Keychain(Error)
Keychain error
Transaction(Error)
Transaction Error
ClientCallback(String)
API Error
Secp(Error)
Secp Error
CallbackImpl(&'static str)
Callback implementation error conversion
Backend(String)
Wallet backend error
Restore
Callback implementation error conversion
Format(String)
An error in the format of the JSON structures exchanged by the wallet
Deser(Error)
Other serialization errors
IO
IO Error
Node
Error when contacting a node through its API
WalletComms(String)
Error contacting wallet API
Hyper
Error originating from hyper.
Uri
Error originating from hyper uri parsing.
Signature(String)
Signature error
APIEncryption(String)
OwnerAPIEncryption
DuplicateTransactionId
Attempt to use duplicate transaction id in separate transactions
WalletSeedExists(String)
Wallet seed already exists
WalletSeedDoesntExist
Wallet seed doesn’t exist
WalletSeedDecryption
Wallet seed doesn’t exist
TransactionDoesntExist(String)
Transaction doesn’t exist
TransactionNotCancellable(String)
Transaction already rolled back
TransactionCancellationError(&'static str)
Cancellation error
TransactionDumpError(&'static str)
Cancellation error
TransactionAlreadyConfirmed
Attempt to repost a transaction that’s already confirmed
TransactionAlreadyReceived(String)
Transaction has already been received
TransactionBuildingNotCompleted(u32)
Attempt to repost a transaction that’s not completed and stored
InvalidBIP32Depth
Invalid BIP-32 Depth
AccountLabelAlreadyExists(String)
Attempt to add an account that exists
UnknownAccountLabel(String)
Reference unknown account label
Committed(Error)
Error from summing commitments via committed trait.
SlateVersionParse
Can’t parse slate version
SlateSer
Can’t serialize slate
SlateDeser
Can’t deserialize slate
SlateVersion(u16)
Unknown slate version
Compatibility(String)
Compatibility error between incoming slate versions and what’s expected
KeychainDoesntExist
Keychain doesn’t exist (wallet not openend)
Lifecycle(String)
Lifecycle Error
InvalidKeychainMask
Invalid Keychain Mask Error
TorProcess(String)
Tor Process error
TorConfig(String)
Tor Configuration Error
ED25519Key(String)
Generating ED25519 Public Key
PaymentProof(String)
Generating Payment Proof
PaymentProofRetrieval(String)
Retrieving Payment Proof
PaymentProofParsing(String)
Retrieving Payment Proof
AddressDecoding(String)
Decoding OnionV3 addresses to payment proof addresses
TransactionExpired
Transaction has expired it’s TTL
SQLiteError(String)
InvalidBase58Character(char, usize)
InvalidBase58Length
InvalidBase58Checksum
InvalidBase58Version
InvalidBase58Key
NumberParsingError
ClosedListener(String)
Encryption
Decryption
EpicboxAddressParsingError(String)
GenericError(String)
Other
RequestError(String)
ArgumentError(String)
IOError(String)
CancelledError
EpicboxReconnectLimit
LibWallet(String)
LibWallet Error
NotFoundErr(String)
Trait Implementations§
source§impl Deserialize<'static> for Error
impl Deserialize<'static> for Error
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
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
§impl<T> CloneAny for T
impl<T> CloneAny for T
§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
self. Read moresource§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
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<E> Fail for E
impl<E> Fail for E
§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Backtrace carried by this failure, if it
carries one. Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
self. Read more§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
ptr, which was obtained from a prior call to Self::borrow(),
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self. Read more