pub enum Error {
Show 42 variants
Custom(String),
UserAbort,
Platform,
WalletError(Error),
TerminalError(Error),
ChannelError(String),
WrpcError(Error),
RpcError(RpcError),
SerdeJsonError(Error),
ParseFloatError(ParseFloatError),
ParseIntError(ParseIntError),
ParseHexError(Error),
AddrParseError(AddrParseError),
AccountNotFound(String),
AmbiguousAccount(String),
WalletDoesNotExist,
WalletIsNotOpen,
UnrecognizedArgument(String, String),
MultipleMatches(String),
InvalidAccountKind,
WalletSecretRequired,
WalletBip32WatchXpubRequired,
WalletSecretMatch,
PaymentSecretRequired,
PaymentSecretMatch,
KeyDataNotFound,
WatchOnlyAccountNoKeyData,
NoAccounts,
NoKeys,
AddressError(AddressError),
DowncastError(String),
Store(Error),
NodeJs(Error),
Daemon(Error),
Dom(Error),
NetworkId(NetworkIdError),
Bip32(Error),
PrivateKeyAlreadyExists(String),
MetricsError(Error),
KaspaWalletKeys(Error),
PskbLockScriptSigError(Error),
PskbSerializeToHexError,
}
Variants§
Custom(String)
UserAbort
Platform
WalletError(Error)
TerminalError(Error)
ChannelError(String)
WrpcError(Error)
RpcError(RpcError)
SerdeJsonError(Error)
ParseFloatError(ParseFloatError)
ParseIntError(ParseIntError)
ParseHexError(Error)
AddrParseError(AddrParseError)
AccountNotFound(String)
AmbiguousAccount(String)
WalletDoesNotExist
WalletIsNotOpen
UnrecognizedArgument(String, String)
MultipleMatches(String)
InvalidAccountKind
WalletSecretRequired
WalletBip32WatchXpubRequired
WalletSecretMatch
PaymentSecretRequired
PaymentSecretMatch
KeyDataNotFound
WatchOnlyAccountNoKeyData
NoAccounts
NoKeys
AddressError(AddressError)
DowncastError(String)
Store(Error)
NodeJs(Error)
Daemon(Error)
Dom(Error)
NetworkId(NetworkIdError)
Bip32(Error)
PrivateKeyAlreadyExists(String)
MetricsError(Error)
KaspaWalletKeys(Error)
PskbLockScriptSigError(Error)
PskbSerializeToHexError
Implementations§
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)>
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<AddrParseError> for Error
impl From<AddrParseError> for Error
Source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<AddressError> for Error
impl From<AddressError> for Error
Source§fn from(source: AddressError) -> Self
fn from(source: AddressError) -> Self
Converts to this type from the input type.
Source§impl<T> From<ChannelError<T>> for Error
impl<T> From<ChannelError<T>> for Error
Source§fn from(e: ChannelError<T>) -> Error
fn from(e: ChannelError<T>) -> Error
Converts to this type from the input type.
Source§impl<T> From<DowncastError<T>> for Error
impl<T> From<DowncastError<T>> for Error
Source§fn from(e: DowncastError<T>) -> Self
fn from(e: DowncastError<T>) -> Self
Converts to this type from the input type.
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(source: WalletError) -> Self
fn from(source: WalletError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(source: TerminalError) -> Self
fn from(source: TerminalError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(e: Error) -> TerminalError
fn from(e: Error) -> TerminalError
Converts to this type from the input type.
Source§impl From<NetworkIdError> for Error
impl From<NetworkIdError> for Error
Source§fn from(source: NetworkIdError) -> Self
fn from(source: NetworkIdError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for Error
impl From<ParseFloatError> for Error
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
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
Mutably borrows from an owned value. Read more
Source§impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
Source§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
Source§fn ref_any(&self) -> &(dyn Any + 'static)
fn ref_any(&self) -> &(dyn Any + 'static)
Returns a immutable reference to
Any
, which is backed by the type implementing this trait.Source§fn mut_any(&mut self) -> &mut (dyn Any + 'static)
fn mut_any(&mut self) -> &mut (dyn Any + 'static)
Returns a mutable reference to
Any
, which is backed by the type implementing this trait.Source§impl<T> CastFromSync for T
impl<T> CastFromSync for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for 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>
Converts
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>
Converts
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 moreSource§impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
fn rounding_into(self, rm: RoundingMode) -> (U, Ordering)
Source§impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
fn saturating_into(self) -> U
Source§impl<T> ToDebugString for Twhere
T: Debug,
impl<T> ToDebugString for Twhere
T: Debug,
Source§fn to_debug_string(&self) -> String
fn to_debug_string(&self) -> String
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.