Skip to main content

ModuleInstancePlan

Struct ModuleInstancePlan 

Source
pub struct ModuleInstancePlan { /* private fields */ }
Expand description

One exact App-local Module Instance selected by the resolved Plan.

Implementations§

Source§

impl ModuleInstancePlan

Source

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.

Source

pub fn with_entrypoint(self, entrypoint: impl Into<String>) -> Self

Selects the exact package entrypoint executed for this Instance.

Source

pub fn with_configuration(self, configuration: impl Into<String>) -> Self

Supplies opaque, non-secret configuration owned and decoded by the Module.

Source

pub fn with_capability(self, capability: CapabilityEndpointPlan) -> Self

Declares one exact endpoint this Instance must prepare.

Source

pub fn with_requirement(self, requirement: CapabilityRequirementPlan) -> Self

Declares one Capability dependency for this Instance.

Source

pub fn with_required_capability( self, requirement: CapabilityRequirementPlan, ) -> Self

Alias that makes the authoring direction explicit at the call site.

Source

pub fn with_execution_class(self, execution_class: ExecutionClassId) -> Self

Selects the host execution class for this Module Instance.

Source

pub fn with_execution_lane(self, execution_lane: ExecutionLaneId) -> Self

Places this Module Instance on one Plan-declared Execution Lane.

Source

pub fn with_package_revision(self, revision: impl Into<String>) -> Self

Records the exact opaque package-manager lock selection before boot.

Source

pub fn with_restart_policy(self, restart_policy: RestartPolicy) -> Self

Selects the finite supervision policy for this Module Instance.

Source

pub fn with_criticality(self, criticality: ModuleCriticality) -> Self

Marks this Module Instance critical for supervision exhaustion outcomes.

Source

pub fn instance_key(&self) -> &str

Returns the App-local Instance key.

Source

pub fn package_id(&self) -> &str

Returns the selected package identity.

Source

pub fn entrypoint(&self) -> &str

Returns the exact package entrypoint selected before boot.

Source

pub fn configuration(&self) -> &str

Returns the Module-owned opaque configuration selected before boot.

Source

pub fn provided_capabilities(&self) -> &[CapabilityEndpointPlan]

Returns the exact endpoint set this Instance must prepare.

Source

pub fn required_capabilities(&self) -> &[CapabilityRequirementPlan]

Returns the exact Capability requirements this Instance receives.

Source

pub fn execution_class(&self) -> &ExecutionClassId

Returns the host execution class selected for this Instance.

Source

pub const fn execution_lane(&self) -> &ExecutionLaneId

Returns the Plan-declared Execution Lane for this Instance.

Source

pub fn package_revision(&self) -> &str

Returns the exact opaque package-manager lock selection.

Source

pub const fn restart_policy(&self) -> RestartPolicy

Returns the supervision policy selected for this Instance.

Source

pub const fn criticality(&self) -> ModuleCriticality

Returns the criticality selected for this Instance.

Trait Implementations§

Source§

impl Clone for ModuleInstancePlan

Source§

fn clone(&self) -> ModuleInstancePlan

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ModuleInstancePlan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ModuleInstancePlan

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ModuleInstancePlan

Source§

impl PartialEq for ModuleInstancePlan

Source§

fn eq(&self, other: &ModuleInstancePlan) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ModuleInstancePlan

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ModuleInstancePlan

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.