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 Freeze for WindowsCPUResourcesBuilder
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