pub enum Error {
Show 39 variants
ApiTypes(Error),
Bech32HrpMismatch {
provided: String,
expected: String,
},
Blake2b256(&'static str),
Block(Error),
ConsolidationRequired(usize),
Crypto(Error),
InputAddressNotFound {
address: String,
range: String,
},
InvalidAmount(String),
InvalidMnemonic(String),
InvalidRegularTransactionEssenceLength {
length: usize,
max_length: usize,
},
InvalidTransactionPayloadLength {
length: usize,
max_length: usize,
},
Json(Error),
MissingParameter(&'static str),
Node(Error),
NoNeedPromoteOrReattach(String),
NoOutput(String),
PlaceholderSecretManager,
PoisonError,
PrefixHex(Error),
QuorumPoolSizeError {
available_nodes: usize,
minimum_threshold: usize,
},
QuorumThresholdError {
quorum_size: usize,
minimum_threshold: usize,
},
SecretManagerMismatch,
HealthyNodePoolEmpty,
TaggedData(String),
TangleInclusion(String),
TaskJoin(JoinError),
TimeNotSynced {
current_time: u32,
milestone_timestamp: u32,
},
TransactionSemantic(ConflictReason),
UnsupportedQueryParameter(QueryParameter),
Unpack(UnpackError<Error, UnexpectedEOF>),
UrlAuth(&'static str),
Url(ParseError),
UrlValidation(String),
InputSelection(Error),
MissingBip32Chain,
Participation(Error),
Ledger(Error),
Mqtt(Error),
Stronghold(Error),
}
client
only.Expand description
Error type of the iota client crate.
Variants§
ApiTypes(Error)
Block dtos error
Bech32HrpMismatch
Invalid bech32 HRP, should match the one from the used network
Fields
Blake2b256(&'static str)
Blake2b256 Error
Block(Error)
Block types error
ConsolidationRequired(usize)
The wallet account has enough funds, but split on too many outputs
Crypto(Error)
Crypto.rs error
InputAddressNotFound
Address not found
Fields
InvalidAmount(String)
Invalid amount in API response
InvalidMnemonic(String)
Invalid mnemonic error
InvalidRegularTransactionEssenceLength
The transaction essence is too large
InvalidTransactionPayloadLength
The transaction payload is too large
Json(Error)
JSON error
MissingParameter(&'static str)
Missing required parameters
Node(Error)
Error on API request
NoNeedPromoteOrReattach(String)
The block doesn’t need to be promoted or reattached
NoOutput(String)
Requested output id not found for this type
PlaceholderSecretManager
PlaceholderSecretManager can’t be used for address generation or signing
PoisonError
Rw lock failed.
PrefixHex(Error)
Prefix hex string convert error
QuorumPoolSizeError
Error on quorum because not enough nodes are available
Fields
QuorumThresholdError
Error on reaching quorum
Fields
SecretManagerMismatch
Specifically used for TryInfo
implementations for SecretManager
.
HealthyNodePoolEmpty
No node available in the healthy node pool
TaggedData(String)
Error when building tagged_data blocks
TangleInclusion(String)
The block cannot be included into the Tangle
TaskJoin(JoinError)
Tokio task join error
TimeNotSynced
Local time doesn’t match the time of the latest milestone timestamp
Fields
TransactionSemantic(ConflictReason)
The semantic validation of a transaction failed.
UnsupportedQueryParameter(QueryParameter)
An indexer API request contains a query parameter not supported by the endpoint.
Unpack(UnpackError<Error, UnexpectedEOF>)
Unpack error
UrlAuth(&'static str)
URL auth error
Url(ParseError)
URL error
UrlValidation(String)
URL validation error
InputSelection(Error)
Input selection error.
MissingBip32Chain
Missing BIP32 chain to sign with.
Participation(Error)
participation
only.Participation error
Ledger(Error)
ledger_nano
only.Ledger error
Mqtt(Error)
mqtt
only.MQTT error
Stronghold(Error)
stronghold
only.Stronghold error
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(source: InputSelectionError) -> Self
fn from(source: InputSelectionError) -> Self
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<UnpackError<Error, UnexpectedEOF>> for Error
impl From<UnpackError<Error, UnexpectedEOF>> for Error
Source§fn from(source: UnpackError<Error, UnexpectedEOF>) -> Self
fn from(source: UnpackError<Error, UnexpectedEOF>) -> Self
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more