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.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Windows
impl<'de> Deserialize<'de> for Windows
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 PartialEq for Windows
impl PartialEq for Windows
impl Eq for Windows
impl StructuralPartialEq for Windows
Auto Trait Implementations§
impl Freeze for Windows
impl RefUnwindSafe for Windows
impl Send for Windows
impl Sync for Windows
impl Unpin for Windows
impl UnwindSafe for Windows
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)