pub type Store<T, F> = Store<InstanceState<<F as RuntimeFactors>::InstanceState, <T as Trigger<F>>::InstanceState>>;
Expand description
Type alias for a [spin_core::Store
] specialized to a Trigger
.
Aliased Type§
struct Store<T, F> { /* private fields */ }
Implementations
§impl<T> Store<T>
impl<T> Store<T>
pub fn set_deadline(&mut self, deadline: Instant)
pub fn set_deadline(&mut self, deadline: Instant)
Sets the execution deadline.
This is a rough deadline; an instance will trap some time after this
deadline, determined by [EngineBuilder::epoch_tick_interval
] and
details of the system’s thread scheduler.
pub fn data(&self) -> &T
pub fn data(&self) -> &T
Provides access to the inner wasmtime::Store
’s data.
pub fn data_mut(&mut self) -> &mut T
pub fn data_mut(&mut self) -> &mut T
Provides access to the inner wasmtime::Store
’s data.
Trait Implementations
§impl<T> AsContext for Store<T>
impl<T> AsContext for Store<T>
§fn as_context(&self) -> StoreContext<'_, <Store<T> as AsContext>::Data>
fn as_context(&self) -> StoreContext<'_, <Store<T> as AsContext>::Data>
Returns the store context that this type provides access to.
§impl<T> AsContextMut for Store<T>
impl<T> AsContextMut for Store<T>
§fn as_context_mut(
&mut self,
) -> StoreContextMut<'_, <Store<T> as AsContext>::Data>
fn as_context_mut( &mut self, ) -> StoreContextMut<'_, <Store<T> as AsContext>::Data>
Returns the store context that this type provides access to.