[−][src]Struct wasmtime::Store
A Store
is a shared cache of information between WebAssembly modules.
Each Module
is compiled into a Store
and a Store
is associated with an
Engine
. You'll use a Store
to attach to a number of global items in
the production of various items for wasm modules.
Stores and Clone
Using clone
on a Store
is a cheap operation. It will not create an
entirely new store, but rather just a new reference to the existing object.
In other words it's a shallow copy, not a deep copy.
Stores and Default
You can create a store with default configuration settings using
Store::default()
. This will create a brand new Engine
with default
ocnfiguration (see Config
for more information).
Methods
impl Store
[src]
pub fn new(engine: &Engine) -> Store
[src]
Creates a new store to be associated with the given Engine
.
pub fn engine(&self) -> &Engine
[src]
Returns the Engine
that this store is associated with.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Store
impl !Send for Store
impl !Sync for Store
impl Unpin for Store
impl !UnwindSafe for Store
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,