pub struct ModuleInstancePlan { /* private fields */ }Expand description
One exact App-local Module Instance selected by the resolved Plan.
Implementations§
Source§impl ModuleInstancePlan
impl ModuleInstancePlan
Sourcepub fn new(
instance_key: impl Into<String>,
package_id: impl Into<String>,
) -> Self
pub fn new( instance_key: impl Into<String>, package_id: impl Into<String>, ) -> Self
Selects one statically linked package under an App-local Instance key.
Sourcepub fn with_entrypoint(self, entrypoint: impl Into<String>) -> Self
pub fn with_entrypoint(self, entrypoint: impl Into<String>) -> Self
Selects the exact package entrypoint executed for this Instance.
Sourcepub fn with_configuration(self, configuration: impl Into<String>) -> Self
pub fn with_configuration(self, configuration: impl Into<String>) -> Self
Supplies opaque, non-secret configuration owned and decoded by the Module.
Sourcepub fn with_capability(self, capability: CapabilityEndpointPlan) -> Self
pub fn with_capability(self, capability: CapabilityEndpointPlan) -> Self
Declares one exact endpoint this Instance must prepare.
Sourcepub fn with_requirement(self, requirement: CapabilityRequirementPlan) -> Self
pub fn with_requirement(self, requirement: CapabilityRequirementPlan) -> Self
Declares one Capability dependency for this Instance.
Sourcepub fn with_required_capability(
self,
requirement: CapabilityRequirementPlan,
) -> Self
pub fn with_required_capability( self, requirement: CapabilityRequirementPlan, ) -> Self
Alias that makes the authoring direction explicit at the call site.
Sourcepub fn with_execution_class(self, execution_class: ExecutionClassId) -> Self
pub fn with_execution_class(self, execution_class: ExecutionClassId) -> Self
Selects the host execution class for this Module Instance.
Sourcepub fn with_execution_lane(self, execution_lane: ExecutionLaneId) -> Self
pub fn with_execution_lane(self, execution_lane: ExecutionLaneId) -> Self
Places this Module Instance on one Plan-declared Execution Lane.
Sourcepub fn with_package_revision(self, revision: impl Into<String>) -> Self
pub fn with_package_revision(self, revision: impl Into<String>) -> Self
Records the exact opaque package-manager lock selection before boot.
Sourcepub fn with_restart_policy(self, restart_policy: RestartPolicy) -> Self
pub fn with_restart_policy(self, restart_policy: RestartPolicy) -> Self
Selects the finite supervision policy for this Module Instance.
Sourcepub fn with_criticality(self, criticality: ModuleCriticality) -> Self
pub fn with_criticality(self, criticality: ModuleCriticality) -> Self
Marks this Module Instance critical for supervision exhaustion outcomes.
Sourcepub fn instance_key(&self) -> &str
pub fn instance_key(&self) -> &str
Returns the App-local Instance key.
Sourcepub fn package_id(&self) -> &str
pub fn package_id(&self) -> &str
Returns the selected package identity.
Sourcepub fn entrypoint(&self) -> &str
pub fn entrypoint(&self) -> &str
Returns the exact package entrypoint selected before boot.
Sourcepub fn configuration(&self) -> &str
pub fn configuration(&self) -> &str
Returns the Module-owned opaque configuration selected before boot.
Sourcepub fn provided_capabilities(&self) -> &[CapabilityEndpointPlan]
pub fn provided_capabilities(&self) -> &[CapabilityEndpointPlan]
Returns the exact endpoint set this Instance must prepare.
Sourcepub fn required_capabilities(&self) -> &[CapabilityRequirementPlan]
pub fn required_capabilities(&self) -> &[CapabilityRequirementPlan]
Returns the exact Capability requirements this Instance receives.
Sourcepub fn execution_class(&self) -> &ExecutionClassId
pub fn execution_class(&self) -> &ExecutionClassId
Returns the host execution class selected for this Instance.
Sourcepub const fn execution_lane(&self) -> &ExecutionLaneId
pub const fn execution_lane(&self) -> &ExecutionLaneId
Returns the Plan-declared Execution Lane for this Instance.
Sourcepub fn package_revision(&self) -> &str
pub fn package_revision(&self) -> &str
Returns the exact opaque package-manager lock selection.
Sourcepub const fn restart_policy(&self) -> RestartPolicy
pub const fn restart_policy(&self) -> RestartPolicy
Returns the supervision policy selected for this Instance.
Sourcepub const fn criticality(&self) -> ModuleCriticality
pub const fn criticality(&self) -> ModuleCriticality
Returns the criticality selected for this Instance.
Trait Implementations§
Source§impl Clone for ModuleInstancePlan
impl Clone for ModuleInstancePlan
Source§fn clone(&self) -> ModuleInstancePlan
fn clone(&self) -> ModuleInstancePlan
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more