#[non_exhaustive]pub enum WalletSendError {
Preflight(BrowserError),
Ambiguous {
identity: WalletSendIdentity,
reported_hash: Option<Hash32>,
source: BrowserError,
},
}Expand description
Whether the adapter failed before dispatch or after submission could occur.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Preflight(BrowserError)
No wallet transaction request was dispatched.
Ambiguous
Wallet dispatch began. No retry or nonce/claim release is implied.
Fields
§
identity: WalletSendIdentityOriginal request metadata, not an expected signed transaction ID.
§
reported_hash: Option<Hash32>Hash returned before the failure, if it was structurally parseable. It may have failed origin/ledger checks and is not a verified identity.
§
source: BrowserErrorSanitized cause, including numeric rejection or context change.
Implementations§
Source§impl WalletSendError
impl WalletSendError
Sourcepub fn acceptance_is_ambiguous(&self) -> bool
pub fn acceptance_is_ambiguous(&self) -> bool
True after wallet dispatch may have occurred, including remote rejection.
Trait Implementations§
Source§impl Debug for WalletSendError
impl Debug for WalletSendError
Source§impl Display for WalletSendError
impl Display for WalletSendError
Source§impl Error for WalletSendError
impl Error for WalletSendError
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()
Auto Trait Implementations§
impl Forget for WalletSendError
impl Freeze for WalletSendError
impl Move for WalletSendError
impl RefUnwindSafe for WalletSendError
impl Send for WalletSendError
impl Sync for WalletSendError
impl Unpin for WalletSendError
impl UnsafeUnpin for WalletSendError
impl UnwindSafe for WalletSendError
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