pub struct LinuxWeightDeviceBuilder { /* private fields */ }
Expand description
Builder for LinuxWeightDevice
.
Implementations§
Source§impl LinuxWeightDeviceBuilder
impl LinuxWeightDeviceBuilder
Sourcepub fn weight<VALUE: Into<u16>>(self, value: VALUE) -> Self
pub fn weight<VALUE: Into<u16>>(self, value: VALUE) -> Self
Weight is the bandwidth rate for the device.
Sourcepub fn leaf_weight<VALUE: Into<u16>>(self, value: VALUE) -> Self
pub fn leaf_weight<VALUE: Into<u16>>(self, value: VALUE) -> Self
LeafWeight is the bandwidth rate for the device while competing with the cgroup’s child cgroups, CFQ scheduler only.
Sourcepub fn build(self) -> Result<LinuxWeightDevice, OciSpecError>
pub fn build(self) -> Result<LinuxWeightDevice, OciSpecError>
Trait Implementations§
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