pub struct RuntimeOwner { /* private fields */ }Implementations§
Source§impl RuntimeOwner
impl RuntimeOwner
Source§impl RuntimeOwner
impl RuntimeOwner
pub fn new( incarnation: String, store: ConfigStore, capturer: ConfigCapturer, ) -> Self
pub fn module_gate(&self, module: &str) -> Result<Arc<Mutex<()>>, GateError>
pub fn take_activities(&self) -> Vec<StoreActivity>
Sourcepub fn declare(
&self,
connection: ConnectionId,
module: &str,
declaration: ConfigDeclareRequest,
active: bool,
) -> Result<(), GateError>
pub fn declare( &self, connection: ConnectionId, module: &str, declaration: ConfigDeclareRequest, active: bool, ) -> Result<(), GateError>
Declaration ownership comes from the registered transport connection. A candidate’s proposal is retained without replacing the incumbent’s.
pub fn disconnected(&self, connection: ConnectionId)
pub fn module_get( &self, connection: ConnectionId, module: &str, request: ConfigGetRequest, ) -> Result<ConfigGetReply, GateError>
Sourcepub fn prepare(&self, kind: PlanKind) -> Result<PreparedPlan, GateError>
pub fn prepare(&self, kind: PlanKind) -> Result<PreparedPlan, GateError>
Run from a blocking worker: capture and store publication may touch disk and the platform keychain. No transport wait takes place under this lock. Preflight may record the proposal observed on disk. Refusals for missing authoritative project membership, active-scope usage or approved-program launch selection happen before any plan, approval or generation is written. A proposal neither approves nor records the refused plan.
pub fn finish_plan( &self, prepared: PreparedPlan, review: impl FnOnce(&GateSnapshot, &GateSnapshot) -> Result<Changeset, GateError>, ) -> Result<ConfigPlanView, GateError>
pub fn begin_approval( &self, digest: &Digest, facts: &ApprovalFacts, ) -> Result<ApprovalChallenge, GateError>
pub fn finish_approval( &self, attempt: u64, facts: &ApprovalFacts, reply: ApprovalReply, now_ms: u64, ) -> Result<u64, GateError>
pub fn status(&self) -> Result<ConfigStatus, GateError>
pub fn history(&self) -> Result<(Vec<Generation>, Vec<Value>), GateError>
Sourcepub fn approved_snapshot(&self) -> Result<DeliverySnapshot, GateError>
pub fn approved_snapshot(&self) -> Result<DeliverySnapshot, GateError>
Admission is owned by the supervisor adapter; until it is installed it must not infer executable authority from diagnostic snapshots.
Sourcepub fn approved_rollback_commands(
&self,
generation: u64,
) -> Result<ApprovedRollbackCommands, GateError>
pub fn approved_rollback_commands( &self, generation: u64, ) -> Result<ApprovedRollbackCommands, GateError>
Read the saved rollback, never today’s edited files. This is not spawn
authorization: admission must select an eligible module generation and
launch exactly the returned identity under that module’s gate lock.
Re-check the file identity at spawn and refuse plan_stale if it changed
since approval. Path-changing rollback plans remain refused until the
supervisor uses these approved inputs to select and launch programs at
the restored paths.
Trait Implementations§
Source§impl DeliveryObserver for RuntimeOwner
impl DeliveryObserver for RuntimeOwner
Source§fn health_probe(
&self,
connection: ConnectionId,
module: &str,
) -> Result<Option<DeliveryProbe>, GateError>
fn health_probe( &self, connection: ConnectionId, module: &str, ) -> Result<Option<DeliveryProbe>, GateError>
Capture before dispatching the ordinary health RPC. A later result must use this witness, not look up whichever target is current on completion.
Source§fn health_result(
&self,
probe: DeliveryProbe,
healthy: bool,
) -> Result<Option<AppliedDisposition>, GateError>
fn health_result( &self, probe: DeliveryProbe, healthy: bool, ) -> Result<Option<AppliedDisposition>, GateError>
Complete under the module gate. A new target, attempt or policy install invalidates an older witness rather than lending its health to new bytes.