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