pub struct IsolationCapabilitySet {
pub capabilities: BTreeSet<IsolationCapability>,
}Expand description
Describes the isolation capability set portion of a runtime package snapshot. Use it when package authors or tests need explicit package configuration; validation and activation happen in package/runtime coordinators.
Fields§
§capabilities: BTreeSet<IsolationCapability>Capabilities frozen into the package or returned by an adapter health check.
Implementations§
Source§impl IsolationCapabilitySet
impl IsolationCapabilitySet
Sourcepub fn with_all(
self,
capabilities: impl IntoIterator<Item = IsolationCapability>,
) -> Self
pub fn with_all( self, capabilities: impl IntoIterator<Item = IsolationCapability>, ) -> Self
Returns this value with its all setting replaced. The method follows builder-style data construction and does not execute external work.
Sourcepub fn without(self, capability: IsolationCapability) -> Self
pub fn without(self, capability: IsolationCapability) -> Self
Returns an updated package::isolation value with without applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn contains(&self, capability: &IsolationCapability) -> bool
pub fn contains(&self, capability: &IsolationCapability) -> bool
Reads the stored contains without registry or runtime work. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn missing_from(&self, available: &Self) -> Vec<IsolationCapability>
pub fn missing_from(&self, available: &Self) -> Vec<IsolationCapability>
Returns an updated package::isolation value with missing from applied. This is data construction only and does not execute the configured behavior.
Trait Implementations§
Source§impl Clone for IsolationCapabilitySet
impl Clone for IsolationCapabilitySet
Source§fn clone(&self) -> IsolationCapabilitySet
fn clone(&self) -> IsolationCapabilitySet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IsolationCapabilitySet
impl Debug for IsolationCapabilitySet
Source§impl Default for IsolationCapabilitySet
impl Default for IsolationCapabilitySet
Source§fn default() -> IsolationCapabilitySet
fn default() -> IsolationCapabilitySet
Source§impl<'de> Deserialize<'de> for IsolationCapabilitySet
impl<'de> Deserialize<'de> for IsolationCapabilitySet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl FromIterator<IsolationCapability> for IsolationCapabilitySet
impl FromIterator<IsolationCapability> for IsolationCapabilitySet
Source§fn from_iter<T: IntoIterator<Item = IsolationCapability>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = IsolationCapability>>(iter: T) -> Self
Source§impl PartialEq for IsolationCapabilitySet
impl PartialEq for IsolationCapabilitySet
Source§fn eq(&self, other: &IsolationCapabilitySet) -> bool
fn eq(&self, other: &IsolationCapabilitySet) -> bool
self and other values to be equal, and is used by ==.