Struct oci_spec::runtime::LinuxThrottleDeviceBuilder
source · pub struct LinuxThrottleDeviceBuilder { /* private fields */ }
Expand description
Builder for LinuxThrottleDevice
.
Implementations§
source§impl LinuxThrottleDeviceBuilder
impl LinuxThrottleDeviceBuilder
sourcepub fn rate<VALUE: Into<u64>>(self, value: VALUE) -> Self
pub fn rate<VALUE: Into<u64>>(self, value: VALUE) -> Self
Rate is the IO rate limit per cgroup per device.
sourcepub fn build(self) -> Result<LinuxThrottleDevice, OciSpecError>
pub fn build(self) -> Result<LinuxThrottleDevice, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxThrottleDeviceBuilder
impl RefUnwindSafe for LinuxThrottleDeviceBuilder
impl Send for LinuxThrottleDeviceBuilder
impl Sync for LinuxThrottleDeviceBuilder
impl Unpin for LinuxThrottleDeviceBuilder
impl UnwindSafe for LinuxThrottleDeviceBuilder
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