Enum terra_rust_api::errors::TerraRustAPIError[][src]

pub enum TerraRustAPIError {
Show 22 variants ReqwestError(Error), Terra(String), TerraLCDResponse(StatusCodeString), Bech32DecodeErr, Bech32DecodeExpanded(StringusizeStringusize), Phrasing, MissingPhrase, Implementation, Conversion { key: String, source: Error, }, ConversionSECP256k1, ConversionED25519, ConversionLength(usize), ConversionLengthED25519Hex(usize), ConversionPrefixED25519(usizeString), NoGasOpts, CoinParseErrV { parse: String, source: Error, }, CoinParseErr(String), TxResultError(usizeStringString), GasPriceError(String), TendermintValidatorSet(u64u64), TXNotFound(usize), Unknown,
}

Variants

ReqwestError(Error)

Tuple Fields of ReqwestError

0: Error
Terra(String)

Tuple Fields of Terra

0: String
TerraLCDResponse(StatusCodeString)

Tuple Fields of TerraLCDResponse

0: StatusCode1: String
Bech32DecodeErr
Bech32DecodeExpanded(StringusizeStringusize)

Tuple Fields of Bech32DecodeExpanded

0: String1: usize2: String3: usize
Phrasing
MissingPhrase
Implementation
Conversion

Fields of Conversion

key: Stringsource: Error
ConversionSECP256k1
ConversionED25519
ConversionLength(usize)

Tuple Fields of ConversionLength

0: usize
ConversionLengthED25519Hex(usize)

Tuple Fields of ConversionLengthED25519Hex

0: usize
ConversionPrefixED25519(usizeString)

Tuple Fields of ConversionPrefixED25519

0: usize1: String
NoGasOpts
CoinParseErrV

Fields of CoinParseErrV

parse: Stringsource: Error
CoinParseErr(String)

Tuple Fields of CoinParseErr

0: String
TxResultError(usizeStringString)

Tuple Fields of TxResultError

0: usize1: String2: String
GasPriceError(String)

Tuple Fields of GasPriceError

0: String
TendermintValidatorSet(u64u64)

Tuple Fields of TendermintValidatorSet

0: u641: u64
TXNotFound(usize)

Tuple Fields of TXNotFound

0: usize
Unknown

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more