pub struct WindowsResourcesBuilder { /* private fields */ }
Expand description
Builder for WindowsResources
.
Implementations§
Source§impl WindowsResourcesBuilder
impl WindowsResourcesBuilder
Sourcepub fn memory<VALUE: Into<WindowsMemoryResources>>(self, value: VALUE) -> Self
pub fn memory<VALUE: Into<WindowsMemoryResources>>(self, value: VALUE) -> Self
Memory restriction configuration.
Sourcepub fn cpu<VALUE: Into<WindowsCPUResources>>(self, value: VALUE) -> Self
pub fn cpu<VALUE: Into<WindowsCPUResources>>(self, value: VALUE) -> Self
CPU resource restriction configuration.
Sourcepub fn storage<VALUE: Into<WindowsStorageResources>>(self, value: VALUE) -> Self
pub fn storage<VALUE: Into<WindowsStorageResources>>(self, value: VALUE) -> Self
Storage restriction configuration.
Sourcepub fn build(self) -> Result<WindowsResources, OciSpecError>
pub fn build(self) -> Result<WindowsResources, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WindowsResourcesBuilder
impl RefUnwindSafe for WindowsResourcesBuilder
impl Send for WindowsResourcesBuilder
impl Sync for WindowsResourcesBuilder
impl Unpin for WindowsResourcesBuilder
impl UnwindSafe for WindowsResourcesBuilder
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