pub struct WasmOps;Expand description
WasmOps Thin ops-layer wrapper around the embedded WasmRegistry.
Implementations§
Source§impl WasmOps
impl WasmOps
Sourcepub fn get(role: &CanisterRole) -> Option<WasmModule>
pub fn get(role: &CanisterRole) -> Option<WasmModule>
Fetch a WASM module for the given canister type if registered.
Sourcepub fn try_get(role: &CanisterRole) -> Result<WasmModule, Error>
pub fn try_get(role: &CanisterRole) -> Result<WasmModule, Error>
Fetch a WASM module or return an error when missing.
Sourcepub fn import_static(wasms: &'static [(CanisterRole, &[u8])])
pub fn import_static(wasms: &'static [(CanisterRole, &[u8])])
Import a static slice of (role, wasm bytes) at startup.