Enum iota_wallet::error::Error
source · [−]pub enum Error {
Show 26 variants
AccountAliasAlreadyExists(String),
AccountNotFound(String),
AddressNotFoundInAccount(String),
BackupError(&'static str),
Block(Error),
BlockDtoError(DtoError),
BurningOrMeltingFailed(String),
ClientError(Box<Error>),
ConsolidationRequired(usize, u16),
CryptoError(Error),
CustomInputError(String),
FailedToGetRemainder,
InsufficientFunds(u64, u64),
InvalidCoinType(u32, u32),
InvalidMnemonic(String),
InvalidOutputKind(String),
IoError(Error),
JsonError(Error),
MintingFailed(String),
MissingParameter(&'static str),
NftNotFoundInUnspentOutputs,
NoOutputsToConsolidate {
available_outputs: usize,
consolidation_threshold: usize,
},
RecordNotFound(String),
Storage(String),
StorageIsEncrypted,
TaskJoinError(JoinError),
}
Expand description
The wallet error type.
Variants
AccountAliasAlreadyExists(String)
Account alias must be unique.
AccountNotFound(String)
Account not found
AddressNotFoundInAccount(String)
Address not found in account
BackupError(&'static str)
Errors during backup creation or restoring
Block(Error)
Error from block crate.
BlockDtoError(DtoError)
Block dtos error
BurningOrMeltingFailed(String)
Burning or melting failed
ClientError(Box<Error>)
iota.rs error.
ConsolidationRequired(usize, u16)
Funds are spread over too many outputs
CryptoError(Error)
Crypto.rs error
CustomInputError(String)
Custom input error
FailedToGetRemainder
Failed to get remainder
InsufficientFunds(u64, u64)
Insufficient funds to send transaction.
InvalidCoinType(u32, u32)
Invalid coin type, all accounts need to have the same coin type
InvalidMnemonic(String)
Invalid mnemonic error
InvalidOutputKind(String)
Invalid output kind.
IoError(Error)
IO error. (storage, backup, restore)
JsonError(Error)
serde_json error.
MintingFailed(String)
Minting failed
MissingParameter(&'static str)
Missing parameter.
NftNotFoundInUnspentOutputs
Nft not found in unspent outputs
NoOutputsToConsolidate
Fields
available_outputs: usize
The available outputs for consolidation.
consolidation_threshold: usize
The consolidation threshold.
No outputs available for consolidating
RecordNotFound(String)
Record not found
Storage(String)
Storage access error.
StorageIsEncrypted
Can’t use AccountManager API because the storage is encrypted
TaskJoinError(JoinError)
Tokio task join error
Trait Implementations
sourceimpl Error for Error
impl Error for Error
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>
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
use the Display impl or to_string()
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> AsErrorSource for T where
T: 'static + Error,
impl<T> AsErrorSource for T where
T: 'static + Error,
fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more