pub struct LinuxWeightDevice {
pub leaf_weight: Option<u16>,
pub major: Option<i64>,
pub minor: Option<i64>,
pub weight: Option<u16>,
}
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 Clone for LinuxWeightDevice
impl Clone for LinuxWeightDevice
Source§fn clone(&self) -> LinuxWeightDevice
fn clone(&self) -> LinuxWeightDevice
Returns a copy of the value. Read more
1.0.0 · 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 LinuxWeightDevice
impl Debug for LinuxWeightDevice
Source§impl<'de> Deserialize<'de> for LinuxWeightDevice
impl<'de> Deserialize<'de> for LinuxWeightDevice
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LinuxWeightDevice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LinuxWeightDevice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LinuxWeightDevice
impl PartialEq for LinuxWeightDevice
Source§impl Serialize for LinuxWeightDevice
impl Serialize for LinuxWeightDevice
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LinuxWeightDevice
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