pub struct LinuxWeightDeviceBuilder { /* private fields */ }
Expand description
Builder for LinuxWeightDevice
.
Implementations§
Source§impl LinuxWeightDeviceBuilder
impl LinuxWeightDeviceBuilder
Sourcepub fn major<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn major<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
Major is the device’s major number.
Sourcepub fn minor<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn minor<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
Minor is the device’s minor number.
Sourcepub fn weight<VALUE: Into<Option<u16>>>(&mut self, value: VALUE) -> &mut Self
pub fn weight<VALUE: Into<Option<u16>>>(&mut self, value: VALUE) -> &mut Self
Weight is the bandwidth rate for the device.
Sourcepub fn leaf_weight<VALUE: Into<Option<u16>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn leaf_weight<VALUE: Into<Option<u16>>>( &mut self, value: VALUE, ) -> &mut Self
LeafWeight is the bandwidth rate for the device while competing with the cgroup’s child cgroups, CFQ scheduler only
Trait Implementations§
Source§impl Clone for LinuxWeightDeviceBuilder
impl Clone for LinuxWeightDeviceBuilder
Source§fn clone(&self) -> LinuxWeightDeviceBuilder
fn clone(&self) -> LinuxWeightDeviceBuilder
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 Default for LinuxWeightDeviceBuilder
impl Default for LinuxWeightDeviceBuilder
Source§fn default() -> LinuxWeightDeviceBuilder
fn default() -> LinuxWeightDeviceBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LinuxWeightDeviceBuilder
impl RefUnwindSafe for LinuxWeightDeviceBuilder
impl Send for LinuxWeightDeviceBuilder
impl Sync for LinuxWeightDeviceBuilder
impl Unpin for LinuxWeightDeviceBuilder
impl UnwindSafe for LinuxWeightDeviceBuilder
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