pub struct Store<T> { /* private fields */ }
Expand description
A Store
holds the runtime state of a Spin instance.
In general, a Store
is expected to live only for the lifetime of a single
Spin trigger invocation.
A Store
can be built with a StoreBuilder
.
Implementations§
source§impl<T> Store<T>
impl<T> Store<T>
sourcepub fn host_components_data(&mut self) -> &mut HostComponentsData
pub fn host_components_data(&mut self) -> &mut HostComponentsData
Returns a mutable reference to the HostComponentsData
of this Store
.
sourcepub 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.
Trait Implementations§
source§impl<T> AsContext for Store<T>
impl<T> AsContext for Store<T>
source§fn as_context(&self) -> StoreContext<'_, Self::Data>
fn as_context(&self) -> StoreContext<'_, Self::Data>
Returns the store context that this type provides access to.
source§impl<T> AsContextMut for Store<T>
impl<T> AsContextMut for Store<T>
source§fn as_context_mut(&mut self) -> StoreContextMut<'_, Self::Data>
fn as_context_mut(&mut self) -> StoreContextMut<'_, Self::Data>
Returns the store context that this type provides access to.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Store<T>
impl<T> Send for Store<T>where
T: Send,
impl<T> !Sync for Store<T>
impl<T> Unpin for Store<T>
impl<T> !UnwindSafe for Store<T>
Blanket Implementations§
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.