Struct oci_spec::runtime::WindowsCPUResourcesBuilder
source · pub struct WindowsCPUResourcesBuilder { /* private fields */ }
Expand description
Builder for WindowsCPUResources
.
Implementations§
source§impl WindowsCPUResourcesBuilder
impl WindowsCPUResourcesBuilder
sourcepub fn count<VALUE: Into<u64>>(self, value: VALUE) -> Self
pub fn count<VALUE: Into<u64>>(self, value: VALUE) -> Self
Number of CPUs available to the container.
CPU shares (relative weight to other containers with cpu shares).
sourcepub fn maximum<VALUE: Into<u16>>(self, value: VALUE) -> Self
pub fn maximum<VALUE: Into<u16>>(self, value: VALUE) -> Self
Specifies the portion of processor cycles that this container can use as a percentage times 100.
sourcepub fn build(self) -> Result<WindowsCPUResources, OciSpecError>
pub fn build(self) -> Result<WindowsCPUResources, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for WindowsCPUResourcesBuilder
impl Send for WindowsCPUResourcesBuilder
impl Sync for WindowsCPUResourcesBuilder
impl Unpin for WindowsCPUResourcesBuilder
impl UnwindSafe for WindowsCPUResourcesBuilder
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