pub struct BlkioWeightDevice {
pub path: String,
pub weight: u16,
}Expand description
Per-device I/O weight entry under blkio_config.weight_device.
Fields§
§path: StringHost device path the weight applies to.
weight: u16I/O weight for the device (10-1000).
Trait Implementations§
Source§impl Clone for BlkioWeightDevice
impl Clone for BlkioWeightDevice
Source§fn clone(&self) -> BlkioWeightDevice
fn clone(&self) -> BlkioWeightDevice
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 BlkioWeightDevice
impl Debug for BlkioWeightDevice
Source§impl<'de> Deserialize<'de> for BlkioWeightDevice
impl<'de> Deserialize<'de> for BlkioWeightDevice
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 BlkioWeightDevice
impl RefUnwindSafe for BlkioWeightDevice
impl Send for BlkioWeightDevice
impl Sync for BlkioWeightDevice
impl Unpin for BlkioWeightDevice
impl UnsafeUnpin for BlkioWeightDevice
impl UnwindSafe for BlkioWeightDevice
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