Struct pancake_server::engine_ssi::wasm::Udf
source · pub struct Udf {
run_txn: Func,
}Fields§
§run_txn: FuncImplementations§
source§impl Udf
impl Udf
sourcepub fn instantiate<T>(
store: impl AsContextMut<Data = T>,
component: &Component,
linker: &Linker<T>
) -> Result<(Self, Instance)>
pub fn instantiate<T>( store: impl AsContextMut<Data = T>, component: &Component, linker: &Linker<T> ) -> Result<(Self, Instance)>
Instantiates the provided module using the specified
parameters, wrapping up the result in a structure that
translates between wasm and the host.
sourcepub fn new(store: impl AsContextMut, instance: &Instance) -> Result<Self>
pub fn new(store: impl AsContextMut, instance: &Instance) -> Result<Self>
Low-level creation wrapper for wrapping up the exports
of the instance provided in this structure of wasm
exports.
This function will extract exports from the instance
defined within store and wrap them all up in the
returned structure which can be used to interact with
the wasm module.
pub fn run_txn<S: AsContextMut>( &self, store: S ) -> Result<Result<CommitDecision, String>>
Auto Trait Implementations§
impl RefUnwindSafe for Udf
impl Send for Udf
impl Sync for Udf
impl Unpin for Udf
impl UnwindSafe for Udf
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