pub struct LinuxBlockIo { /* private fields */ }Expand description
LinuxBlockIO for Linux cgroup ‘blkio’ resource management.
Implementations§
Source§impl LinuxBlockIo
 
impl LinuxBlockIo
Source§impl LinuxBlockIo
 
impl LinuxBlockIo
Sourcepub fn weight_device(&self) -> &Option<Vec<LinuxWeightDevice>>
 
pub fn weight_device(&self) -> &Option<Vec<LinuxWeightDevice>>
Weight per cgroup per device, can override BlkioWeight.
Sourcepub fn throttle_read_bps_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
 
pub fn throttle_read_bps_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
IO read rate limit per cgroup per device, bytes per second.
Sourcepub fn throttle_write_bps_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
 
pub fn throttle_write_bps_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
IO write rate limit per cgroup per device, bytes per second.
Sourcepub fn throttle_read_iops_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
 
pub fn throttle_read_iops_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
IO read rate limit per cgroup per device, IO per second.
Sourcepub fn throttle_write_iops_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
 
pub fn throttle_write_iops_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
IO write rate limit per cgroup per device, IO per second.
Source§impl LinuxBlockIo
 
impl LinuxBlockIo
Sourcepub fn set_weight(&mut self, val: Option<u16>) -> &mut Self
 
pub fn set_weight(&mut self, val: Option<u16>) -> &mut Self
Specifies per cgroup weight.
Sourcepub fn set_leaf_weight(&mut self, val: Option<u16>) -> &mut Self
 
pub fn set_leaf_weight(&mut self, val: Option<u16>) -> &mut Self
Specifies tasks’ weight in the given cgroup while competing with the cgroup’s child cgroups, CFQ scheduler only.
Sourcepub fn set_weight_device(
    &mut self,
    val: Option<Vec<LinuxWeightDevice>>,
) -> &mut Self
 
pub fn set_weight_device( &mut self, val: Option<Vec<LinuxWeightDevice>>, ) -> &mut Self
Weight per cgroup per device, can override BlkioWeight.
Sourcepub fn set_throttle_read_bps_device(
    &mut self,
    val: Option<Vec<LinuxThrottleDevice>>,
) -> &mut Self
 
pub fn set_throttle_read_bps_device( &mut self, val: Option<Vec<LinuxThrottleDevice>>, ) -> &mut Self
IO read rate limit per cgroup per device, bytes per second.
Sourcepub fn set_throttle_write_bps_device(
    &mut self,
    val: Option<Vec<LinuxThrottleDevice>>,
) -> &mut Self
 
pub fn set_throttle_write_bps_device( &mut self, val: Option<Vec<LinuxThrottleDevice>>, ) -> &mut Self
IO write rate limit per cgroup per device, bytes per second.
Sourcepub fn set_throttle_read_iops_device(
    &mut self,
    val: Option<Vec<LinuxThrottleDevice>>,
) -> &mut Self
 
pub fn set_throttle_read_iops_device( &mut self, val: Option<Vec<LinuxThrottleDevice>>, ) -> &mut Self
IO read rate limit per cgroup per device, IO per second.
Sourcepub fn set_throttle_write_iops_device(
    &mut self,
    val: Option<Vec<LinuxThrottleDevice>>,
) -> &mut Self
 
pub fn set_throttle_write_iops_device( &mut self, val: Option<Vec<LinuxThrottleDevice>>, ) -> &mut Self
IO write rate limit per cgroup per device, IO per second.
Trait Implementations§
Source§impl Clone for LinuxBlockIo
 
impl Clone for LinuxBlockIo
Source§fn clone(&self) -> LinuxBlockIo
 
fn clone(&self) -> LinuxBlockIo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more