Struct oci_spec::runtime::LinuxBlockIo
source · pub struct LinuxBlockIo { /* private fields */ }
Expand description
LinuxBlockIO for Linux cgroup ‘blkio’ resource management.
Implementations§
source§impl LinuxBlockIo
impl LinuxBlockIo
source§impl LinuxBlockIo
impl LinuxBlockIo
sourcepub fn weight_device(&self) -> &Option<Vec<LinuxWeightDevice>>
pub fn weight_device(&self) -> &Option<Vec<LinuxWeightDevice>>
Weight per cgroup per device, can override BlkioWeight.
sourcepub fn throttle_read_bps_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
pub fn throttle_read_bps_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
IO read rate limit per cgroup per device, bytes per second.
sourcepub fn throttle_write_bps_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
pub fn throttle_write_bps_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
IO write rate limit per cgroup per device, bytes per second.
sourcepub fn throttle_read_iops_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
pub fn throttle_read_iops_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
IO read rate limit per cgroup per device, IO per second.
sourcepub fn throttle_write_iops_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
pub fn throttle_write_iops_device(&self) -> &Option<Vec<LinuxThrottleDevice>>
IO write rate limit per cgroup per device, IO per second.
source§impl LinuxBlockIo
impl LinuxBlockIo
sourcepub fn set_weight(&mut self, val: Option<u16>) -> &mut Self
pub fn set_weight(&mut self, val: Option<u16>) -> &mut Self
Specifies per cgroup weight.
sourcepub fn set_leaf_weight(&mut self, val: Option<u16>) -> &mut Self
pub fn set_leaf_weight(&mut self, val: Option<u16>) -> &mut Self
Specifies tasks’ weight in the given cgroup while competing with the cgroup’s child cgroups, CFQ scheduler only.
sourcepub fn set_weight_device(
&mut self,
val: Option<Vec<LinuxWeightDevice>>,
) -> &mut Self
pub fn set_weight_device( &mut self, val: Option<Vec<LinuxWeightDevice>>, ) -> &mut Self
Weight per cgroup per device, can override BlkioWeight.
sourcepub fn set_throttle_read_bps_device(
&mut self,
val: Option<Vec<LinuxThrottleDevice>>,
) -> &mut Self
pub fn set_throttle_read_bps_device( &mut self, val: Option<Vec<LinuxThrottleDevice>>, ) -> &mut Self
IO read rate limit per cgroup per device, bytes per second.
sourcepub fn set_throttle_write_bps_device(
&mut self,
val: Option<Vec<LinuxThrottleDevice>>,
) -> &mut Self
pub fn set_throttle_write_bps_device( &mut self, val: Option<Vec<LinuxThrottleDevice>>, ) -> &mut Self
IO write rate limit per cgroup per device, bytes per second.
sourcepub fn set_throttle_read_iops_device(
&mut self,
val: Option<Vec<LinuxThrottleDevice>>,
) -> &mut Self
pub fn set_throttle_read_iops_device( &mut self, val: Option<Vec<LinuxThrottleDevice>>, ) -> &mut Self
IO read rate limit per cgroup per device, IO per second.
sourcepub fn set_throttle_write_iops_device(
&mut self,
val: Option<Vec<LinuxThrottleDevice>>,
) -> &mut Self
pub fn set_throttle_write_iops_device( &mut self, val: Option<Vec<LinuxThrottleDevice>>, ) -> &mut Self
IO write rate limit per cgroup per device, IO per second.
Trait Implementations§
source§impl Clone for LinuxBlockIo
impl Clone for LinuxBlockIo
source§fn clone(&self) -> LinuxBlockIo
fn clone(&self) -> LinuxBlockIo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LinuxBlockIo
impl Debug for LinuxBlockIo
source§impl Default for LinuxBlockIo
impl Default for LinuxBlockIo
source§fn default() -> LinuxBlockIo
fn default() -> LinuxBlockIo
source§impl<'de> Deserialize<'de> for LinuxBlockIo
impl<'de> Deserialize<'de> for LinuxBlockIo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for LinuxBlockIo
impl PartialEq for LinuxBlockIo
source§fn eq(&self, other: &LinuxBlockIo) -> bool
fn eq(&self, other: &LinuxBlockIo) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LinuxBlockIo
impl Serialize for LinuxBlockIo
impl Eq for LinuxBlockIo
impl StructuralPartialEq for LinuxBlockIo
Auto Trait Implementations§
impl Freeze for LinuxBlockIo
impl RefUnwindSafe for LinuxBlockIo
impl Send for LinuxBlockIo
impl Sync for LinuxBlockIo
impl Unpin for LinuxBlockIo
impl UnwindSafe for LinuxBlockIo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)