Struct cgroups::BlkIoResources
source · pub struct BlkIoResources {
pub update_values: bool,
pub weight: u16,
pub leaf_weight: u16,
pub weight_device: Vec<BlkIoDeviceResource>,
pub throttle_read_bps_device: Vec<BlkIoDeviceThrottleResource>,
pub throttle_read_iops_device: Vec<BlkIoDeviceThrottleResource>,
pub throttle_write_bps_device: Vec<BlkIoDeviceThrottleResource>,
pub throttle_write_iops_device: Vec<BlkIoDeviceThrottleResource>,
}
Expand description
General block I/O resource limits.
Fields
update_values: bool
Whether values should be applied to the controller.
weight: u16
The weight of the control group against descendant nodes.
leaf_weight: u16
The weight of the control group against sibling nodes.
weight_device: Vec<BlkIoDeviceResource>
For each device, a separate weight (both normal and leaf) can be provided.
throttle_read_bps_device: Vec<BlkIoDeviceThrottleResource>
Throttled read bytes/second can be provided for each device.
throttle_read_iops_device: Vec<BlkIoDeviceThrottleResource>
Throttled read IO operations per second can be provided for each device.
throttle_write_bps_device: Vec<BlkIoDeviceThrottleResource>
Throttled written bytes/second can be provided for each device.
throttle_write_iops_device: Vec<BlkIoDeviceThrottleResource>
Throttled write IO operations per second can be provided for each device.
Trait Implementations
sourceimpl Clone for BlkIoResources
impl Clone for BlkIoResources
sourcefn clone(&self) -> BlkIoResources
fn clone(&self) -> BlkIoResources
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BlkIoResources
impl Debug for BlkIoResources
sourceimpl Default for BlkIoResources
impl Default for BlkIoResources
sourcefn default() -> BlkIoResources
fn default() -> BlkIoResources
Returns the “default value” for a type. Read more
sourceimpl PartialEq<BlkIoResources> for BlkIoResources
impl PartialEq<BlkIoResources> for BlkIoResources
sourcefn eq(&self, other: &BlkIoResources) -> bool
fn eq(&self, other: &BlkIoResources) -> bool
impl Eq for BlkIoResources
impl StructuralEq for BlkIoResources
impl StructuralPartialEq for BlkIoResources
Auto Trait Implementations
impl RefUnwindSafe for BlkIoResources
impl Send for BlkIoResources
impl Sync for BlkIoResources
impl Unpin for BlkIoResources
impl UnwindSafe for BlkIoResources
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more