[][src]Struct cgroups_rs::cgroup_builder::BlkIoResourcesBuilder

pub struct BlkIoResourcesBuilder { /* fields omitted */ }

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.