pub struct LinuxBlockIOBuilder { /* private fields */ }
Expand description
Builder for LinuxBlockIO
.
Implementations§
Source§impl LinuxBlockIOBuilder
impl LinuxBlockIOBuilder
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
Specifies per cgroup weight
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
Specifies tasks’ weight in the given cgroup while competing with the cgroup’s child cgroups, CFQ scheduler only
Sourcepub fn weight_device<VALUE: Into<Vec<LinuxWeightDevice>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn weight_device<VALUE: Into<Vec<LinuxWeightDevice>>>( &mut self, value: VALUE, ) -> &mut Self
Weight per cgroup per device, can override BlkioWeight
Sourcepub fn throttle_read_bps_device<VALUE: Into<Vec<LinuxThrottleDevice>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn throttle_read_bps_device<VALUE: Into<Vec<LinuxThrottleDevice>>>( &mut self, value: VALUE, ) -> &mut Self
IO read rate limit per cgroup per device, bytes per second
Sourcepub fn throttle_write_bps_device<VALUE: Into<Vec<LinuxThrottleDevice>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn throttle_write_bps_device<VALUE: Into<Vec<LinuxThrottleDevice>>>( &mut self, value: VALUE, ) -> &mut Self
IO write rate limit per cgroup per device, bytes per second
Sourcepub fn throttle_read_iops_device<VALUE: Into<Vec<LinuxThrottleDevice>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn throttle_read_iops_device<VALUE: Into<Vec<LinuxThrottleDevice>>>( &mut self, value: VALUE, ) -> &mut Self
IO read rate limit per cgroup per device, IO per second
Sourcepub fn throttle_write_iops_device<VALUE: Into<Vec<LinuxThrottleDevice>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn throttle_write_iops_device<VALUE: Into<Vec<LinuxThrottleDevice>>>( &mut self, value: VALUE, ) -> &mut Self
IO write rate limit per cgroup per device, IO per second
Trait Implementations§
Source§impl Clone for LinuxBlockIOBuilder
impl Clone for LinuxBlockIOBuilder
Source§fn clone(&self) -> LinuxBlockIOBuilder
fn clone(&self) -> LinuxBlockIOBuilder
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 LinuxBlockIOBuilder
impl Default for LinuxBlockIOBuilder
Source§fn default() -> LinuxBlockIOBuilder
fn default() -> LinuxBlockIOBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LinuxBlockIOBuilder
impl RefUnwindSafe for LinuxBlockIOBuilder
impl Send for LinuxBlockIOBuilder
impl Sync for LinuxBlockIOBuilder
impl Unpin for LinuxBlockIOBuilder
impl UnwindSafe for LinuxBlockIOBuilder
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