pub struct PlatformCapabilities {Show 13 fields
pub os: String,
pub architecture: String,
pub vm_backend: VmBackend,
pub host_guest_channel: HostGuestChannel,
pub unix_sockets: bool,
pub named_pipes: bool,
pub netproxy: bool,
pub bridge_network_backend: BridgeNetworkBackend,
pub bridge_outbound_nat: bool,
pub published_ports: bool,
pub tee_attestation: bool,
pub sealed_storage: bool,
pub interactive_pty: bool,
}Expand description
Runtime capabilities exposed by the current host OS.
This is intentionally separate from Platform, which represents an OCI
image platform. Capabilities describe what the host can execute directly.
Fields§
§os: StringHost OS as reported by Rust.
architecture: StringHost architecture in OCI naming.
vm_backend: VmBackendVM backend used on this host.
host_guest_channel: HostGuestChannelHost/guest control channel available on this host.
unix_sockets: boolWhether Unix domain sockets are available.
named_pipes: boolWhether Windows named pipes are available.
netproxy: boolWhether the native network proxy is available.
bridge_network_backend: BridgeNetworkBackendBridge network backend available on this host.
bridge_outbound_nat: boolWhether user-defined bridge networks can provide guest outbound NAT.
published_ports: boolWhether published ports can be bridged on this host.
tee_attestation: boolWhether TEE attestation is available in the native runtime.
sealed_storage: boolWhether sealed storage is available in the native runtime.
interactive_pty: boolWhether this host can run interactive PTY sessions through the native control channel.
Implementations§
Source§impl PlatformCapabilities
impl PlatformCapabilities
Sourcepub fn supports_native_vm(&self) -> bool
pub fn supports_native_vm(&self) -> bool
Whether the host can run the VM runtime directly.
Sourcepub fn supports_host_guest_channel(&self) -> bool
pub fn supports_host_guest_channel(&self) -> bool
Whether the host has a supported control channel.
Sourcepub fn supports_bridge_networking(&self) -> bool
pub fn supports_bridge_networking(&self) -> bool
Whether user-defined bridge networking is available.
Sourcepub fn bridge_networking_summary(&self) -> String
pub fn bridge_networking_summary(&self) -> String
Human-readable bridge networking mode summary for diagnostics.
Trait Implementations§
Source§impl Clone for PlatformCapabilities
impl Clone for PlatformCapabilities
Source§fn clone(&self) -> PlatformCapabilities
fn clone(&self) -> PlatformCapabilities
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 PlatformCapabilities
impl Debug for PlatformCapabilities
Source§impl<'de> Deserialize<'de> for PlatformCapabilities
impl<'de> Deserialize<'de> for PlatformCapabilities
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>,
impl Eq for PlatformCapabilities
Source§impl PartialEq for PlatformCapabilities
impl PartialEq for PlatformCapabilities
Source§impl Serialize for PlatformCapabilities
impl Serialize for PlatformCapabilities
impl StructuralPartialEq for PlatformCapabilities
Auto Trait Implementations§
impl Freeze for PlatformCapabilities
impl RefUnwindSafe for PlatformCapabilities
impl Send for PlatformCapabilities
impl Sync for PlatformCapabilities
impl Unpin for PlatformCapabilities
impl UnsafeUnpin for PlatformCapabilities
impl UnwindSafe for PlatformCapabilities
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.