pub struct LinuxWeightDevice {
pub leaf_weight: Option<u16>,
pub major: Option<i64>,
pub minor: Option<i64>,
pub weight: Option<u16>,
}
Available on crate feature
v5
only.Expand description
LinuxWeightDevice struct holds a major:minor weight
pair for weightDevice
Fields§
§leaf_weight: Option<u16>
LeafWeight is the bandwidth rate for the device while competing with the cgroup’s child cgroups, CFQ scheduler only
major: Option<i64>
Major is the device’s major number.
minor: Option<i64>
Minor is the device’s minor number.
weight: Option<u16>
Weight is the bandwidth rate for the device.
Trait Implementations§
Source§impl Debug for LinuxWeightDevice
impl Debug for LinuxWeightDevice
Source§impl Default for LinuxWeightDevice
impl Default for LinuxWeightDevice
Source§fn default() -> LinuxWeightDevice
fn default() -> LinuxWeightDevice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinuxWeightDevice
impl<'de> Deserialize<'de> for LinuxWeightDevice
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 LinuxWeightDevice
impl RefUnwindSafe for LinuxWeightDevice
impl Send for LinuxWeightDevice
impl Sync for LinuxWeightDevice
impl Unpin for LinuxWeightDevice
impl UnwindSafe for LinuxWeightDevice
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