pub enum StoredRunState {
Finished {
values: Vec<StoredValue>,
maybe_remaining_fuel: Option<u32>,
},
Resumable {
resumable_ref: Stored<ResumableRef>,
required_fuel: NonZeroU32,
},
}Expand description
A stored variant of RunState
Variants§
Trait Implementations§
Source§impl AbstractStored for StoredRunState
impl AbstractStored for StoredRunState
type BareTy = RunState
Source§unsafe fn from_bare(bare_value: Self::BareTy, id: StoreId) -> Self
unsafe fn from_bare(bare_value: Self::BareTy, id: StoreId) -> Self
Creates a new stored object Read more
Source§fn into_bare(self) -> Self::BareTy
fn into_bare(self) -> Self::BareTy
Converts this stored object into its bare form that does not have any
StoreId attached to it.Source§fn try_unwrap_into_bare(
self,
expected_store_id: StoreId,
) -> Result<Self::BareTy, RuntimeError>
fn try_unwrap_into_bare( self, expected_store_id: StoreId, ) -> Result<Self::BareTy, RuntimeError>
Auto Trait Implementations§
impl Freeze for StoredRunState
impl !RefUnwindSafe for StoredRunState
impl Send for StoredRunState
impl Sync for StoredRunState
impl Unpin for StoredRunState
impl !UnwindSafe for StoredRunState
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