Enum kaspa_cli_lib::error::Error
source · pub enum Error {
Show 37 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,
WalletSecretMatch,
PaymentSecretRequired,
PaymentSecretMatch,
KeyDataNotFound,
NoAccounts,
NoKeys,
AddressError(AddressError),
DowncastError(String),
Store(Error),
NodeJs(Error),
Daemon(Error),
Dom(Error),
NetworkId(NetworkIdError),
Bip32(Error),
PrivateKeyAlreadyExists(String),
MetricsError(Error),
}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
WalletSecretMatch
PaymentSecretRequired
PaymentSecretMatch
KeyDataNotFound
NoAccounts
NoKeys
AddressError(AddressError)
DowncastError(String)
Store(Error)
NodeJs(Error)
Daemon(Error)
Dom(Error)
NetworkId(NetworkIdError)
Bip32(Error)
PrivateKeyAlreadyExists(String)
MetricsError(Error)
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)>
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(e: Error) -> TerminalError
fn from(e: Error) -> TerminalError
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<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 !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
§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
§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.§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.§impl<T> CastFromSync for T
impl<T> CastFromSync for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.