Struct stateroom_wasm_host::WasmHostFactory
source · pub struct WasmHostFactory { /* private fields */ }
Expand description
Loads and caches a WebAssembly module such that a WasmHost instance can be created from it.
This struct is cheaply cloneable, so it can be used to create multiple instances of the same module.
Implementations§
Trait Implementations§
source§impl Clone for WasmHostFactory
impl Clone for WasmHostFactory
source§fn clone(&self) -> WasmHostFactory
fn clone(&self) -> WasmHostFactory
Returns a copy 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<T: StateroomContext + Send + Sync + 'static> StateroomServiceFactory<T> for WasmHostFactory
impl<T: StateroomContext + Send + Sync + 'static> StateroomServiceFactory<T> for WasmHostFactory
Auto Trait Implementations§
impl !RefUnwindSafe for WasmHostFactory
impl Send for WasmHostFactory
impl Sync for WasmHostFactory
impl Unpin for WasmHostFactory
impl !UnwindSafe for WasmHostFactory
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
§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.