Struct oci_spec::runtime::LinuxWeightDeviceBuilder
source · 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 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