pub enum WalletError {
Show 34 variants
InvalidArguments,
InvalidIcon,
InvalidIdentifier(String),
InvalidSignature,
Signer(String),
Js(String),
ParseString(String),
Program(ProgramError),
Serde(String),
Transaction(TransactionError),
UnsupportedFeature {
feature: String,
wallet: String,
},
UnsupportedIconType,
UnsupportedTransactionVersion,
WalletAccount,
WalletConfig,
WalletConnection,
WalletDecrypt,
WalletDisconnected,
WalletDisconnection,
WalletEncrypt,
WalletKeypair,
WalletLoad,
WalletNotConnected,
WalletNotReady,
WalletPublicKey,
WalletSendTransaction,
WalletSignIn,
WalletSignInFields(String),
WalletSignMessage,
WalletSignTransaction,
WalletTimeout,
WalletWindowBlocked,
WalletWindowClosed,
External(String),
}Variants§
InvalidArguments
InvalidIcon
InvalidIdentifier(String)
InvalidSignature
Signer(String)
Js(String)
ParseString(String)
Program(ProgramError)
Serde(String)
Transaction(TransactionError)
UnsupportedFeature
UnsupportedIconType
UnsupportedTransactionVersion
WalletAccount
WalletConfig
WalletConnection
WalletDecrypt
WalletDisconnected
WalletDisconnection
WalletEncrypt
WalletKeypair
WalletLoad
WalletNotConnected
WalletNotReady
WalletPublicKey
WalletSendTransaction
WalletSignIn
WalletSignInFields(String)
WalletSignMessage
WalletSignTransaction
WalletTimeout
WalletWindowBlocked
WalletWindowClosed
External(String)
An error from an external source. Implement IntoWalletError for your
error to support this functionality.
Trait Implementations§
Source§impl Clone for WalletError
impl Clone for WalletError
Source§fn clone(&self) -> WalletError
fn clone(&self) -> WalletError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WalletError
impl Debug for WalletError
Source§impl<'de> Deserialize<'de> for WalletError
impl<'de> Deserialize<'de> for WalletError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WalletError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WalletError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WalletError
impl Display for WalletError
Source§impl Error for WalletError
impl Error for WalletError
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<E> From<E> for WalletErrorwhere
E: IntoWalletError,
impl<E> From<E> for WalletErrorwhere
E: IntoWalletError,
Source§fn from(value: E) -> WalletError
fn from(value: E) -> WalletError
Converts to this type from the input type.
Source§impl From<Error> for WalletError
impl From<Error> for WalletError
Source§fn from(value: Error) -> WalletError
fn from(value: Error) -> WalletError
Converts to this type from the input type.
Source§impl From<ProgramError> for WalletError
impl From<ProgramError> for WalletError
Source§fn from(source: ProgramError) -> WalletError
fn from(source: ProgramError) -> WalletError
Converts to this type from the input type.
Source§impl From<SignerError> for WalletError
impl From<SignerError> for WalletError
Source§fn from(error: SignerError) -> WalletError
fn from(error: SignerError) -> WalletError
Converts to this type from the input type.
Source§impl From<TransactionError> for WalletError
impl From<TransactionError> for WalletError
Source§fn from(source: TransactionError) -> WalletError
fn from(source: TransactionError) -> WalletError
Converts to this type from the input type.
Source§impl PartialEq for WalletError
impl PartialEq for WalletError
Source§impl Serialize for WalletError
impl Serialize for WalletError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for WalletError
impl StructuralPartialEq for WalletError
Auto Trait Implementations§
impl Freeze for WalletError
impl RefUnwindSafe for WalletError
impl Send for WalletError
impl Sync for WalletError
impl Unpin for WalletError
impl UnwindSafe for WalletError
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more