Skip to main content

WasiWebcryptoView

Trait WasiWebcryptoView 

Source
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§

Source

fn webcrypto(&mut self) -> WasiWebcryptoCtxView<'_>

Return a WasiWebcryptoCtxView from a mutable reference to self.

Implementors§