pub struct BlockIoResources {
pub weight: Option<u16>,
pub leaf_weight: Option<u16>,
pub weight_device: Vec<WeightDevice>,
pub throttle_read_bps_device: Vec<ThrottleDevice>,
pub throttle_write_bps_device: Vec<ThrottleDevice>,
pub throttle_read_iops_device: Vec<ThrottleDevice>,
pub throttle_write_iops_device: Vec<ThrottleDevice>,
}Expand description
Block I/O resource limits.
Fields§
§weight: Option<u16>Block I/O weight.
leaf_weight: Option<u16>Leaf weight.
weight_device: Vec<WeightDevice>Per-device weight.
throttle_read_bps_device: Vec<ThrottleDevice>Throttle read bps.
throttle_write_bps_device: Vec<ThrottleDevice>Throttle write bps.
throttle_read_iops_device: Vec<ThrottleDevice>Throttle read iops.
throttle_write_iops_device: Vec<ThrottleDevice>Throttle write iops.
Trait Implementations§
Source§impl Clone for BlockIoResources
impl Clone for BlockIoResources
Source§fn clone(&self) -> BlockIoResources
fn clone(&self) -> BlockIoResources
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockIoResources
impl Debug for BlockIoResources
Source§impl Default for BlockIoResources
impl Default for BlockIoResources
Source§fn default() -> BlockIoResources
fn default() -> BlockIoResources
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockIoResources
impl<'de> Deserialize<'de> for BlockIoResources
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BlockIoResources
impl RefUnwindSafe for BlockIoResources
impl Send for BlockIoResources
impl Sync for BlockIoResources
impl Unpin for BlockIoResources
impl UnsafeUnpin for BlockIoResources
impl UnwindSafe for BlockIoResources
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
Mutably borrows from an owned value. Read more