pub enum RunState {
Finished {
values: Vec<Value>,
maybe_remaining_fuel: Option<u32>,
},
Resumable {
resumable_ref: ResumableRef,
required_fuel: NonZeroU32,
},
}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 Freeze for RunState
impl !RefUnwindSafe for RunState
impl Send for RunState
impl Sync for RunState
impl Unpin for RunState
impl !UnwindSafe for RunState
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