Struct oci_spec::runtime::WindowsResourcesBuilder
source · 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