Struct oci_spec::runtime::Windows

source ·
pub struct Windows { /* private fields */ }
Expand description

Windows defines the runtime configuration for Windows based containers, including Hyper-V containers.

Implementations§

source§

impl Windows

source

pub fn resources(&self) -> Option<WindowsResources>

Resources contains information for handling resource constraints for the container.

source

pub fn servicing(&self) -> Option<bool>

Servicing indicates if the container is being started in a mode to apply a Windows Update servicing operation.

source

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

source

pub fn layer_folders(&self) -> &Option<Vec<String>>

LayerFolders contains a list of absolute paths to directories containing image layers.

source

pub fn devices(&self) -> &Option<Vec<WindowsDevice>>

Devices are the list of devices to be mapped into the container.

source

pub fn credential_spec(&self) -> &Option<HashMap<String, Option<Value>>>

CredentialSpec contains a JSON object describing a group Managed Service Account (gMSA) specification.

source

pub fn hyperv(&self) -> &Option<WindowsHyperV>

HyperV contains information for running a container with Hyper-V isolation.

source

pub fn network(&self) -> &Option<WindowsNetwork>

Network restriction configuration.

source§

impl Windows

source

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.

source

pub fn set_devices(&mut self, val: Option<Vec<WindowsDevice>>) -> &mut Self

Devices are the list of devices to be mapped into the container.

source

pub fn set_resources(&mut self, val: Option<WindowsResources>) -> &mut Self

Resources contains information for handling resource constraints for the container.

source

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.

source

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.

source

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.

source

pub fn set_hyperv(&mut self, val: Option<WindowsHyperV>) -> &mut Self

HyperV contains information for running a container with Hyper-V isolation.

source

pub fn set_network(&mut self, val: Option<WindowsNetwork>) -> &mut Self

Network restriction configuration.

Trait Implementations§

source§

impl Clone for Windows

source§

fn clone(&self) -> Windows

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Windows

source§

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

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

impl Default for Windows

source§

fn default() -> Windows

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Windows

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 PartialEq for Windows

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Windows

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 Eq for Windows

source§

impl StructuralEq for Windows

source§

impl StructuralPartialEq for Windows

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.
source§

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