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