pub struct Windows { /* private fields */ }
Expand description
Windows defines the runtime configuration for Windows based containers, including Hyper-V containers.
Implementations§
Source§impl Windows
impl Windows
Sourcepub fn resources(&self) -> Option<WindowsResources>
pub fn resources(&self) -> Option<WindowsResources>
Resources contains information for handling resource constraints for the container.
Sourcepub fn servicing(&self) -> Option<bool>
pub fn servicing(&self) -> Option<bool>
Servicing indicates if the container is being started in a mode to apply a Windows Update servicing operation.
Sourcepub fn ignore_flushes_during_boot(&self) -> Option<bool>
pub fn ignore_flushes_during_boot(&self) -> Option<bool>
IgnoreFlushesDuringBoot indicates if the container is being started in a mode where disk writes are not flushed during its boot process.
Source§impl Windows
impl Windows
Sourcepub fn layer_folders(&self) -> &Option<Vec<String>>
pub fn layer_folders(&self) -> &Option<Vec<String>>
LayerFolders contains a list of absolute paths to directories containing image layers.
Sourcepub fn devices(&self) -> &Option<Vec<WindowsDevice>>
pub fn devices(&self) -> &Option<Vec<WindowsDevice>>
Devices are the list of devices to be mapped into the container.
Sourcepub fn credential_spec(&self) -> &Option<HashMap<String, Option<Value>>>
pub fn credential_spec(&self) -> &Option<HashMap<String, Option<Value>>>
CredentialSpec contains a JSON object describing a group Managed Service Account (gMSA) specification.
Sourcepub fn hyperv(&self) -> &Option<WindowsHyperV>
pub fn hyperv(&self) -> &Option<WindowsHyperV>
HyperV contains information for running a container with Hyper-V isolation.
Sourcepub fn network(&self) -> &Option<WindowsNetwork>
pub fn network(&self) -> &Option<WindowsNetwork>
Network restriction configuration.
Source§impl Windows
impl Windows
Sourcepub fn set_layer_folders(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_layer_folders(&mut self, val: Option<Vec<String>>) -> &mut Self
LayerFolders contains a list of absolute paths to directories containing image layers.
Sourcepub fn set_devices(&mut self, val: Option<Vec<WindowsDevice>>) -> &mut Self
pub fn set_devices(&mut self, val: Option<Vec<WindowsDevice>>) -> &mut Self
Devices are the list of devices to be mapped into the container.
Sourcepub fn set_resources(&mut self, val: Option<WindowsResources>) -> &mut Self
pub fn set_resources(&mut self, val: Option<WindowsResources>) -> &mut Self
Resources contains information for handling resource constraints for the container.
Sourcepub fn set_credential_spec(
&mut self,
val: Option<HashMap<String, Option<Value>>>,
) -> &mut Self
pub fn set_credential_spec( &mut self, val: Option<HashMap<String, Option<Value>>>, ) -> &mut Self
CredentialSpec contains a JSON object describing a group Managed Service Account (gMSA) specification.
Sourcepub fn set_servicing(&mut self, val: Option<bool>) -> &mut Self
pub fn set_servicing(&mut self, val: Option<bool>) -> &mut Self
Servicing indicates if the container is being started in a mode to apply a Windows Update servicing operation.
Sourcepub fn set_ignore_flushes_during_boot(&mut self, val: Option<bool>) -> &mut Self
pub fn set_ignore_flushes_during_boot(&mut self, val: Option<bool>) -> &mut Self
IgnoreFlushesDuringBoot indicates if the container is being started in a mode where disk writes are not flushed during its boot process.
Sourcepub fn set_hyperv(&mut self, val: Option<WindowsHyperV>) -> &mut Self
pub fn set_hyperv(&mut self, val: Option<WindowsHyperV>) -> &mut Self
HyperV contains information for running a container with Hyper-V isolation.
Sourcepub fn set_network(&mut self, val: Option<WindowsNetwork>) -> &mut Self
pub fn set_network(&mut self, val: Option<WindowsNetwork>) -> &mut Self
Network restriction configuration.