pub struct LinuxWeightDevice {
pub leaf_weight: Option<i32>,
pub major: Option<i64>,
pub minor: Option<i64>,
pub weight: Option<i32>,
}
Expand description
LinuxWeightDevice : LinuxWeightDevice struct holds a major:minor weight
pair for weightDevice
Fields§
§leaf_weight: Option<i32>
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<i32>
Weight is the bandwidth rate for the device.
Implementations§
Source§impl LinuxWeightDevice
impl LinuxWeightDevice
Sourcepub fn new() -> LinuxWeightDevice
pub fn new() -> LinuxWeightDevice
LinuxWeightDevice struct holds a major:minor weight
pair for weightDevice
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 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
Source§impl PartialEq for LinuxWeightDevice
impl PartialEq for LinuxWeightDevice
Source§impl Serialize for LinuxWeightDevice
impl Serialize for LinuxWeightDevice
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