pub struct WasmtimeWasmBackend { /* private fields */ }Implementations§
Source§impl WasmtimeWasmBackend
impl WasmtimeWasmBackend
pub fn increment_epoch(&self)
pub fn new(config: WasmtimeConfig) -> WasmBackendResult<Self>
Trait Implementations§
Source§impl Clone for WasmtimeWasmBackend
impl Clone for WasmtimeWasmBackend
Source§fn clone(&self) -> WasmtimeWasmBackend
fn clone(&self) -> WasmtimeWasmBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl WasmBackend for WasmtimeWasmBackend
impl WasmBackend for WasmtimeWasmBackend
Source§type Store = WasmtimeStore
type Store = WasmtimeStore
A type that stores all the data, while most of the types are handles to data from
Store.Source§type Imports = WasmtimeImports
type Imports = WasmtimeImports
An object that holds all the functions that are given to
Module as imports.Source§type ContextMut<'c> = WasmtimeContextMut<'c>
type ContextMut<'c> = WasmtimeContextMut<'c>
A temporary mutable handle to
StoreSource§type ImportCallContext<'c> = WasmtimeImportCallContext<'c>
type ImportCallContext<'c> = WasmtimeImportCallContext<'c>
A type that is used to pass context to imports.
Source§type HostFunction = WasmtimeFunction
type HostFunction = WasmtimeFunction
A host function prepared to be used as import for instantiating a module, contained in
Store.Source§type ExportFunction = WasmtimeFunction
type ExportFunction = WasmtimeFunction
An export function from a wasm instance, contained in
StoreSource§type MemoryView = WasmtimeMemory
type MemoryView = WasmtimeMemory
A view to the wasm memory.
Source§fn new_async() -> WasmBackendResult<Self>
fn new_async() -> WasmBackendResult<Self>
Creates a new wasm backend with default configuration. In future, a configuration
may be passed as argument. The only option at the moment is an asynchronous backend.
Auto Trait Implementations§
impl Freeze for WasmtimeWasmBackend
impl !RefUnwindSafe for WasmtimeWasmBackend
impl Send for WasmtimeWasmBackend
impl Sync for WasmtimeWasmBackend
impl Unpin for WasmtimeWasmBackend
impl !UnwindSafe for WasmtimeWasmBackend
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§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.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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