pub struct FuelExhausted;Expand description
Returned by WorkerCtx::fuel_checkpoint /
CoordinatorCtx::fuel_checkpoint when the lease-wide shared fuel
pool is exhausted (or, defensively, when called by a V1 worker that
has no shared pool installed).
This mirrors [super::guest::FuelExhausted] on the wasm32 guest so
source written as ctx.fuel_checkpoint(n)? compiles unchanged
against either target. Phase 48.13 W2b: workers MUST stop computing
immediately on Err(FuelExhausted) — there is no recovery path; a
subsequent fuel-consuming instruction will trap fail-closed.
Trait Implementations§
Source§impl Clone for FuelExhausted
impl Clone for FuelExhausted
Source§fn clone(&self) -> FuelExhausted
fn clone(&self) -> FuelExhausted
Returns a duplicate 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 FuelExhausted
impl Debug for FuelExhausted
Source§impl Display for FuelExhausted
impl Display for FuelExhausted
Source§impl From<FuelExhausted> for TaskletError
impl From<FuelExhausted> for TaskletError
Source§fn from(_: FuelExhausted) -> Self
fn from(_: FuelExhausted) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FuelExhausted
impl PartialEq for FuelExhausted
impl Copy for FuelExhausted
impl Eq for FuelExhausted
impl StructuralPartialEq for FuelExhausted
Auto Trait Implementations§
impl Freeze for FuelExhausted
impl RefUnwindSafe for FuelExhausted
impl Send for FuelExhausted
impl Sync for FuelExhausted
impl Unpin for FuelExhausted
impl UnwindSafe for FuelExhausted
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