pub struct LinuxBlockIoBuilder { /* private fields */ }
Expand description
Builder for LinuxBlockIo
.
Implementations§
Source§impl LinuxBlockIoBuilder
impl LinuxBlockIoBuilder
Sourcepub fn leaf_weight<VALUE: Into<u16>>(self, value: VALUE) -> Self
pub fn leaf_weight<VALUE: Into<u16>>(self, value: VALUE) -> Self
Specifies tasks’ weight in the given cgroup while competing with the cgroup’s child cgroups, CFQ scheduler only.
Sourcepub fn weight_device<VALUE: Into<Vec<LinuxWeightDevice>>>(
self,
value: VALUE,
) -> Self
pub fn weight_device<VALUE: Into<Vec<LinuxWeightDevice>>>( self, value: VALUE, ) -> Self
Weight per cgroup per device, can override BlkioWeight.
Sourcepub fn throttle_read_bps_device<VALUE: Into<Vec<LinuxThrottleDevice>>>(
self,
value: VALUE,
) -> Self
pub fn throttle_read_bps_device<VALUE: Into<Vec<LinuxThrottleDevice>>>( self, value: VALUE, ) -> Self
IO read rate limit per cgroup per device, bytes per second.
Sourcepub fn throttle_write_bps_device<VALUE: Into<Vec<LinuxThrottleDevice>>>(
self,
value: VALUE,
) -> Self
pub fn throttle_write_bps_device<VALUE: Into<Vec<LinuxThrottleDevice>>>( self, value: VALUE, ) -> Self
IO write rate limit per cgroup per device, bytes per second.
Sourcepub fn throttle_read_iops_device<VALUE: Into<Vec<LinuxThrottleDevice>>>(
self,
value: VALUE,
) -> Self
pub fn throttle_read_iops_device<VALUE: Into<Vec<LinuxThrottleDevice>>>( self, value: VALUE, ) -> Self
IO read rate limit per cgroup per device, IO per second.
Sourcepub fn throttle_write_iops_device<VALUE: Into<Vec<LinuxThrottleDevice>>>(
self,
value: VALUE,
) -> Self
pub fn throttle_write_iops_device<VALUE: Into<Vec<LinuxThrottleDevice>>>( self, value: VALUE, ) -> Self
IO write rate limit per cgroup per device, IO per second.
Sourcepub fn build(self) -> Result<LinuxBlockIo, OciSpecError>
pub fn build(self) -> Result<LinuxBlockIo, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxBlockIoBuilder
impl RefUnwindSafe for LinuxBlockIoBuilder
impl Send for LinuxBlockIoBuilder
impl Sync for LinuxBlockIoBuilder
impl Unpin for LinuxBlockIoBuilder
impl UnwindSafe for LinuxBlockIoBuilder
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