[−][src]Struct cgroups_rs::cgroup_builder::BlkIoResourcesBuilder
A builder that configures the blkio controller of a control group.
Implementations
impl BlkIoResourcesBuilder[src]
pub fn weight(self, weight: u16) -> Self[src]
See the similarly named function in the respective controller.
pub fn leaf_weight(self, leaf_weight: u16) -> Self[src]
See the similarly named function in the respective controller.
pub fn weight_device(
self,
major: u64,
minor: u64,
weight: Option<u16>,
leaf_weight: Option<u16>
) -> BlkIoResourcesBuilder[src]
self,
major: u64,
minor: u64,
weight: Option<u16>,
leaf_weight: Option<u16>
) -> BlkIoResourcesBuilder
Set the weight of a certain device.
pub fn throttle_iops(self) -> BlkIoResourcesBuilder[src]
Start configuring the I/O operations per second metric.
pub fn throttle_bps(self) -> BlkIoResourcesBuilder[src]
Start configuring the bytes per second metric.
pub fn read(self, major: u64, minor: u64, rate: u64) -> BlkIoResourcesBuilder[src]
Limit the read rate of the current metric for a certain device.
pub fn write(self, major: u64, minor: u64, rate: u64) -> BlkIoResourcesBuilder[src]
Limit the write rate of the current metric for a certain device.
pub fn done(self) -> CgroupBuilder[src]
Finish the construction of the blkio resources of a control group.
Auto Trait Implementations
impl RefUnwindSafe for BlkIoResourcesBuilder[src]
impl Send for BlkIoResourcesBuilder[src]
impl Sync for BlkIoResourcesBuilder[src]
impl Unpin for BlkIoResourcesBuilder[src]
impl UnwindSafe for BlkIoResourcesBuilder[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,