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.