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.