pub struct ModuleSourceRuntimeApi;Expand description
ModuleSourceRuntimeApi
Implementations§
Source§impl ModuleSourceRuntimeApi
impl ModuleSourceRuntimeApi
Sourcepub fn register_embedded_module_source(
role: CanisterRole,
source: ApprovedModuleSource,
)
pub fn register_embedded_module_source( role: CanisterRole, source: ApprovedModuleSource, )
Register one built-in module source override for the current process.
Sourcepub fn register_embedded_module_wasm(
role: CanisterRole,
source_label: impl Into<String>,
wasm_module: &'static [u8],
)
pub fn register_embedded_module_wasm( role: CanisterRole, source_label: impl Into<String>, wasm_module: &'static [u8], )
Register one embedded wasm payload as the built-in install source for one role.
Sourcepub fn register_module_source_resolver(
resolver: &'static dyn ModuleSourceResolver,
)
pub fn register_module_source_resolver( resolver: &'static dyn ModuleSourceResolver, )
Register the control-plane resolver used by root-owned installation flows.
Sourcepub fn has_embedded_module_source(role: &CanisterRole) -> bool
pub fn has_embedded_module_source(role: &CanisterRole) -> bool
Return whether one embedded module source override has been registered.
Auto Trait Implementations§
impl Freeze for ModuleSourceRuntimeApi
impl RefUnwindSafe for ModuleSourceRuntimeApi
impl Send for ModuleSourceRuntimeApi
impl Sync for ModuleSourceRuntimeApi
impl Unpin for ModuleSourceRuntimeApi
impl UnsafeUnpin for ModuleSourceRuntimeApi
impl UnwindSafe for ModuleSourceRuntimeApi
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