pub struct WasmtimeWizerComponent<'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> ComponentInstanceState for WasmtimeWizerComponent<'_, T>
Available on crate feature component-model only.
impl<T: Send> ComponentInstanceState for WasmtimeWizerComponent<'_, T>
Available on crate feature
component-model only.Source§async fn call_func_ret_list_u8(
&mut self,
instance: &str,
func: &str,
contents: impl FnOnce(&[u8]) + Send,
)
async fn call_func_ret_list_u8( &mut self, instance: &str, func: &str, contents: impl FnOnce(&[u8]) + Send, )
Looks up the exported
instance which has func as an export, calls
it, and returns the list<u8> return type.Source§async fn call_func_ret_s32(&mut self, instance: &str, func: &str) -> i32
async fn call_func_ret_s32(&mut self, instance: &str, func: &str) -> i32
Same as
Self::call_func_ret_list_u8, but for the s32 WIT type.Source§async fn call_func_ret_s64(&mut self, instance: &str, func: &str) -> i64
async fn call_func_ret_s64(&mut self, instance: &str, func: &str) -> i64
Same as
Self::call_func_ret_list_u8, but for the s64 WIT type.Source§async fn call_func_ret_f32(&mut self, instance: &str, func: &str) -> u32
async fn call_func_ret_f32(&mut self, instance: &str, func: &str) -> u32
Same as
Self::call_func_ret_list_u8, but for the f32 WIT type.Source§async fn call_func_ret_f64(&mut self, instance: &str, func: &str) -> u64
async fn call_func_ret_f64(&mut self, instance: &str, func: &str) -> u64
Same as
Self::call_func_ret_list_u8, but for the f64 WIT type.Auto Trait Implementations§
impl<'a, T> Freeze for WasmtimeWizerComponent<'a, T>
impl<'a, T> !RefUnwindSafe for WasmtimeWizerComponent<'a, T>
impl<'a, T> Send for WasmtimeWizerComponent<'a, T>where
T: Send,
impl<'a, T> Sync for WasmtimeWizerComponent<'a, T>where
T: Sync,
impl<'a, T> Unpin for WasmtimeWizerComponent<'a, T>
impl<'a, T> !UnwindSafe for WasmtimeWizerComponent<'a, T>
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
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