pub trait WasiWebcryptoView: Send {
// Required method
fn webcrypto(&mut self) -> WasiWebcryptoCtxView<'_>;
}Expand description
A trait that provides access to the WasiWebcryptoCtx host state.
Implement this for your store’s data type so add_to_linker can wire the
polymorph:webcrypto imports onto your linker.
Required Methods§
Sourcefn webcrypto(&mut self) -> WasiWebcryptoCtxView<'_>
fn webcrypto(&mut self) -> WasiWebcryptoCtxView<'_>
Return a WasiWebcryptoCtxView from a mutable reference to self.