pub struct WasmtimeWizer<'a, T: 'static> {
pub store: &'a mut Store<T>,
pub instance: Instance,
}Available on crate feature
wasmtime only.Expand description
Impementation of InstanceState backed by Wasmtime.
Fields§
§store: &'a mut Store<T>The Wasmtime-based store that owns the instance field.
instance: InstanceThe instance that this will load state from.
Trait Implementations§
Source§impl<T: Send> InstanceState for WasmtimeWizer<'_, T>
impl<T: Send> InstanceState for WasmtimeWizer<'_, T>
Source§async fn global_get(&mut self, name: &str) -> SnapshotVal
async fn global_get(&mut self, name: &str) -> SnapshotVal
Auto Trait Implementations§
impl<'a, T> Freeze for WasmtimeWizer<'a, T>
impl<'a, T> !RefUnwindSafe for WasmtimeWizer<'a, T>
impl<'a, T> Send for WasmtimeWizer<'a, T>where
T: Send,
impl<'a, T> Sync for WasmtimeWizer<'a, T>where
T: Sync,
impl<'a, T> Unpin for WasmtimeWizer<'a, T>
impl<'a, T> !UnwindSafe for WasmtimeWizer<'a, T>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more