pub enum RunState<T> {
Finished {
values: Vec<Value>,
maybe_remaining_fuel: Option<u64>,
},
Resumable {
resumable: Resumable<T>,
required_fuel: NonZeroU64,
},
}Expand description
Represents the state of a possibly interrupted resumable.
Variants§
Finished
represents a resumable that has executed completely with return values values and possibly remaining fuel
maybe_remaining_fuel (has Some(remaining_fuel) for fuel-metered operations and None otherwise)
Resumable
represents a resumable that has ran out of fuel during execution, missing at least required_fuel units of fuel
to continue further execution.
Auto Trait Implementations§
impl<T> Freeze for RunState<T>
impl<T> RefUnwindSafe for RunState<T>
impl<T> Send for RunState<T>
impl<T> Sync for RunState<T>
impl<T> Unpin for RunState<T>
impl<T> UnwindSafe for RunState<T>
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