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 moreSource§impl Debug for LinuxBlockIo
impl Debug for LinuxBlockIo
Source§impl Default for LinuxBlockIo
impl Default for LinuxBlockIo
Source§fn default() -> LinuxBlockIo
fn default() -> LinuxBlockIo
Source§impl<'de> Deserialize<'de> for LinuxBlockIo
impl<'de> Deserialize<'de> for LinuxBlockIo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for LinuxBlockIo
impl PartialEq for LinuxBlockIo
Source§impl Serialize for LinuxBlockIo
impl Serialize for LinuxBlockIo
impl Eq for LinuxBlockIo
impl StructuralPartialEq for LinuxBlockIo
Auto Trait Implementations§
impl Freeze for LinuxBlockIo
impl RefUnwindSafe for LinuxBlockIo
impl Send for LinuxBlockIo
impl Sync for LinuxBlockIo
impl Unpin for LinuxBlockIo
impl UnwindSafe for LinuxBlockIo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)