Struct oci_spec::runtime::WindowsCPUResources [−][src]
pub struct WindowsCPUResources {
pub count: Option<u64>,
pub shares: Option<u16>,
pub maximum: Option<u16>,
}Expand description
WindowsCPUResources contains CPU resource management settings.
Fields
count: Option<u64>Number of CPUs available to the container.
CPU shares (relative weight to other containers with cpu shares).
maximum: Option<u16>Specifies the portion of processor cycles that this container can use as a percentage times 100.
Trait Implementations
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for WindowsCPUResources
impl Send for WindowsCPUResources
impl Sync for WindowsCPUResources
impl Unpin for WindowsCPUResources
impl UnwindSafe for WindowsCPUResources
Blanket Implementations
Mutably borrows from an owned value. Read more