pub enum RunState {
Finished(Vec<Value>),
Resumable {
resumable_ref: ResumableRef,
required_fuel: NonZeroU32,
},
}Expand description
Represents the state of a possibly interrupted resumable. RunState::Finished represents a resumable that has
executed completely. RunState::Resumable represents a resumable that has ran out of fuel during execution, missing
at least required_fuel units of fuel to continue further execution.
Variants§
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