Enum electrum_client::Error[][src]

pub enum Error {
Show 16 variants IOError(Error), JSON(Error), Hex(Error), Protocol(Value), Bitcoin(Error), AlreadySubscribed(ScriptHash), NotSubscribed(ScriptHash), InvalidResponse(Value), Message(String), InvalidDNSNameError(String), MissingDomain, AllAttemptsErrored(Vec<Error>), SharedIOError(Arc<Error>), BothSocksAndTimeout, CouldntLockReader, Mpsc,
}
Expand description

Errors

Variants

IOError

Wraps std::io::Error

Tuple Fields of IOError

0: Error
JSON

Wraps serde_json::error::Error

Tuple Fields of JSON

0: Error
Hex

Wraps bitcoin::hashes::hex::Error

Tuple Fields of Hex

0: Error
Protocol

Error returned by the Electrum server

Tuple Fields of Protocol

0: Value
Bitcoin

Error during the deserialization of a Bitcoin data structure

Tuple Fields of Bitcoin

0: Error
AlreadySubscribed

Already subscribed to the notifications of an address

Tuple Fields of AlreadySubscribed

0: ScriptHash
NotSubscribed

Not subscribed to the notifications of an address

Tuple Fields of NotSubscribed

0: ScriptHash
InvalidResponse

Error during the deserialization of a response from the server

Tuple Fields of InvalidResponse

0: Value
Message

Generic error with a message

Tuple Fields of Message

0: String
InvalidDNSNameError

Invalid domain name for an SSL certificate

Tuple Fields of InvalidDNSNameError

0: String
MissingDomain

Missing domain while it was explicitly asked to validate it

AllAttemptsErrored

Made one or multiple attempts, always in Error

Tuple Fields of AllAttemptsErrored

0: Vec<Error>
SharedIOError

There was an io error reading the socket, to be shared between threads

Tuple Fields of SharedIOError

0: Arc<Error>
BothSocksAndTimeout

Setting both a proxy and a timeout in Config is an error

CouldntLockReader

Couldn’t take a lock on the reader mutex. This means that there’s already another reader thread running

Mpsc

Broken IPC communication channel: the other thread probably has exited

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.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.

Performs the conversion.

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.