pub struct WasmModule { /* private fields */ }Expand description
Opaque batch-executor adapter for WASM-like node implementations.
Implementations§
Source§impl WasmModule
impl WasmModule
Sourcepub const fn new(executor: Box<dyn BatchExecutor>) -> Self
pub const fn new(executor: Box<dyn BatchExecutor>) -> Self
Create a module wrapper around a batch executor.
Sourcepub fn invoke(&self, inputs: BatchInputs) -> Result<BatchOutputs>
pub fn invoke(&self, inputs: BatchInputs) -> Result<BatchOutputs>
Auto Trait Implementations§
impl Freeze for WasmModule
impl !RefUnwindSafe for WasmModule
impl Send for WasmModule
impl Sync for WasmModule
impl Unpin for WasmModule
impl UnsafeUnpin for WasmModule
impl !UnwindSafe for WasmModule
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).