pub enum RecoveryError {
InvalidMnemonic(String),
InvalidXpub(String),
InvalidXprv(String),
InvalidPath(String),
BackendError(String),
NetworkError(String),
RateLimited,
ScanInterrupted,
DerivationError(String),
SerializationError(String),
}Expand description
Errors that can occur during wallet recovery
Variants§
InvalidMnemonic(String)
Invalid mnemonic phrase
InvalidXpub(String)
Invalid extended public key
InvalidXprv(String)
Invalid extended private key
InvalidPath(String)
Invalid derivation path
BackendError(String)
Backend/network error
NetworkError(String)
Network connection error
RateLimited
API rate limit exceeded
ScanInterrupted
Scan was interrupted
DerivationError(String)
Address derivation error
SerializationError(String)
Serialization error
Trait Implementations§
Source§impl Debug for RecoveryError
impl Debug for RecoveryError
Source§impl Display for RecoveryError
impl Display for RecoveryError
Source§impl Error for RecoveryError
impl Error for RecoveryError
1.30.0 · 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<ElectrumError> for RecoveryError
impl From<ElectrumError> for RecoveryError
Source§fn from(e: ElectrumError) -> Self
fn from(e: ElectrumError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for RecoveryError
impl From<Error> for RecoveryError
Source§impl From<HdError> for RecoveryError
impl From<HdError> for RecoveryError
Source§impl From<MnemonicError> for RecoveryError
impl From<MnemonicError> for RecoveryError
Source§fn from(e: MnemonicError) -> Self
fn from(e: MnemonicError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RecoveryError
impl RefUnwindSafe for RecoveryError
impl Send for RecoveryError
impl Sync for RecoveryError
impl Unpin for RecoveryError
impl UnwindSafe for RecoveryError
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