Struct oci_spec::runtime::WindowsCPUResources
source · pub struct WindowsCPUResources { /* private fields */ }
Expand description
WindowsCPUResources contains CPU resource management settings.
Implementations§
source§impl WindowsCPUResources
impl WindowsCPUResources
sourcepub fn set_count(&mut self, val: Option<u64>) -> &mut Self
pub fn set_count(&mut self, val: Option<u64>) -> &mut Self
Number of CPUs available to the container.
CPU shares (relative weight to other containers with cpu shares).
sourcepub fn set_maximum(&mut self, val: Option<u16>) -> &mut Self
pub fn set_maximum(&mut self, val: Option<u16>) -> &mut Self
Specifies the portion of processor cycles that this container can use as a percentage times 100.
Trait Implementations§
source§impl Clone for WindowsCPUResources
impl Clone for WindowsCPUResources
source§fn clone(&self) -> WindowsCPUResources
fn clone(&self) -> WindowsCPUResources
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WindowsCPUResources
impl Debug for WindowsCPUResources
source§impl Default for WindowsCPUResources
impl Default for WindowsCPUResources
source§fn default() -> WindowsCPUResources
fn default() -> WindowsCPUResources
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WindowsCPUResources
impl<'de> Deserialize<'de> for WindowsCPUResources
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for WindowsCPUResources
impl PartialEq for WindowsCPUResources
source§fn eq(&self, other: &WindowsCPUResources) -> bool
fn eq(&self, other: &WindowsCPUResources) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WindowsCPUResources
impl Serialize for WindowsCPUResources
impl Copy for WindowsCPUResources
impl Eq for WindowsCPUResources
impl StructuralPartialEq for WindowsCPUResources
Auto Trait Implementations§
impl Freeze for WindowsCPUResources
impl RefUnwindSafe for WindowsCPUResources
impl Send for WindowsCPUResources
impl Sync for WindowsCPUResources
impl Unpin for WindowsCPUResources
impl UnwindSafe for WindowsCPUResources
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)