pub enum ElectrumError {
Show 15 variants
ConnectionFailed(String),
Timeout,
ServerError {
code: i32,
message: String,
},
InvalidAddress(String),
InvalidResponse(String),
TlsError(String),
IoError(Error),
JsonError(Error),
IdMismatch {
expected: u64,
got: u64,
},
Disconnected,
InvalidScripthash(String),
CertificatePinningFailed(String),
NoServersAvailable,
PoolExhausted,
SubscriptionError(String),
}Expand description
Errors that can occur during Electrum client operations.
Variants§
ConnectionFailed(String)
Failed to connect to server
Timeout
Connection timeout
ServerError
Server returned an error
InvalidAddress(String)
Invalid Bitcoin address
InvalidResponse(String)
Invalid response from server
TlsError(String)
TLS/SSL error
IoError(Error)
I/O error
JsonError(Error)
JSON parsing error
IdMismatch
Request ID mismatch
Disconnected
Server disconnected
InvalidScripthash(String)
Invalid scripthash
CertificatePinningFailed(String)
Certificate pinning failed
NoServersAvailable
No servers available
PoolExhausted
Pool exhausted
SubscriptionError(String)
Subscription error
Trait Implementations§
Source§impl Debug for ElectrumError
impl Debug for ElectrumError
Source§impl Display for ElectrumError
impl Display for ElectrumError
Source§impl Error for ElectrumError
impl Error for ElectrumError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for ElectrumError
impl From<Error> for ElectrumError
Auto Trait Implementations§
impl Freeze for ElectrumError
impl !RefUnwindSafe for ElectrumError
impl Send for ElectrumError
impl Sync for ElectrumError
impl Unpin for ElectrumError
impl !UnwindSafe for ElectrumError
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
Mutably borrows from an owned value. Read more