pub struct WasmSandbox { /* private fields */ }Expand description
The wasmtime-backed sandbox.
Clone-cheap: the engine and linker template are shared via Arc.
Each load_module yields a fresh
WasmInstance with its own Store, linear memory, and empty
capability envelope.
Implementations§
Source§impl WasmSandbox
impl WasmSandbox
Trait Implementations§
Source§impl Clone for WasmSandbox
impl Clone for WasmSandbox
Source§fn clone(&self) -> WasmSandbox
fn clone(&self) -> WasmSandbox
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for WasmSandbox
impl Default for WasmSandbox
Source§impl Sandbox for WasmSandbox
impl Sandbox for WasmSandbox
Auto Trait Implementations§
impl !RefUnwindSafe for WasmSandbox
impl !UnwindSafe for WasmSandbox
impl Freeze for WasmSandbox
impl Send for WasmSandbox
impl Sync for WasmSandbox
impl Unpin for WasmSandbox
impl UnsafeUnpin for WasmSandbox
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> 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