#[non_exhaustive]pub enum BrowserReceiptWaitError {
InvalidConfig,
Timeout {
transaction_hash: Hash32,
last_completed_inclusion: Option<Inclusion>,
polls_completed: u32,
},
PollLimit {
transaction_hash: Hash32,
last_completed_inclusion: Option<Inclusion>,
polls_completed: u32,
},
Provider {
transaction_hash: Hash32,
source: ProviderError,
},
Runtime,
}Expand description
Wait failure never cancels a transaction or authorizes releasing its claims.
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.
InvalidConfig
Invalid limits are rejected before timers and provider I/O.
Timeout
Deadline expired, including time spent awaiting RPCs. Information below is from completed polls only; a cancelled partial poll contributes no inclusion.
Fields
PollLimit
Explicit observation budget exhausted, with no rejection inference.
Fields
Provider
A typed provider read failed; no implicit retry or submission is performed.
Fields
§
source: ProviderErrorRead error, without raw browser/provider objects.
Runtime
Required worker/window clock or timer failed. No wall-clock fallback.
Trait Implementations§
Source§impl Debug for BrowserReceiptWaitError
impl Debug for BrowserReceiptWaitError
Source§impl Display for BrowserReceiptWaitError
impl Display for BrowserReceiptWaitError
Source§impl Error for BrowserReceiptWaitError
impl Error for BrowserReceiptWaitError
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 BrowserReceiptWaitError
impl Freeze for BrowserReceiptWaitError
impl Move for BrowserReceiptWaitError
impl RefUnwindSafe for BrowserReceiptWaitError
impl Send for BrowserReceiptWaitError
impl Sync for BrowserReceiptWaitError
impl Unpin for BrowserReceiptWaitError
impl UnsafeUnpin for BrowserReceiptWaitError
impl UnwindSafe for BrowserReceiptWaitError
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