pub enum ModuleControlRequestFromModule {
CatalogUpdate {
provides: Vec<ProviderRole>,
capabilities: Option<CapabilityDeclarations>,
ready: Option<bool>,
},
LiveRoots {},
ScopeSync {
generation: u64,
scopes: Vec<ScopeRecord>,
},
ScopeDescribe {
owner: Principal,
scope_ref: String,
},
}Expand description
Module-originated channel-0 control RPC body.
This is intentionally separate from ModuleControlRequest: that enum is the
daemon-to-module direction (route.bind, health.check), while these bodies
are sent by an already-registered module to subc on a REQUEST frame.
Variants§
CatalogUpdate
Fields
provides: Vec<ProviderRole>capabilities: Option<CapabilityDeclarations>An attested replacement for the static capability declaration emitted
by the module’s current manifest. None preserves the prior
declaration so existing role-only catalog updates remain byte-identical.
LiveRoots
ScopeSync
Register this module’s full scope set. The owner is the module whose
registered connection sends it; nothing in the body names the owner.
Per-record refusals come back in the reply; a refusal of the whole sync
(not the owner’s sync authority, a stale generation, a bound exceeded)
is an Error frame and changes nothing.
ScopeDescribe
Read one scope’s current state.