pub struct Cgroup {Show 19 fields
pub android_group: Option<i32>,
pub uid: Option<u32>,
pub pid: Option<u32>,
pub current: Option<u64>,
pub peak: Option<u64>,
pub min: Option<u64>,
pub low: Option<u64>,
pub high: Option<u64>,
pub max: Option<u64>,
pub swap_current: Option<u64>,
pub swap_peak: Option<u64>,
pub swap_high: Option<u64>,
pub swap_max: Option<u64>,
pub zswap_current: Option<u64>,
pub zswap_max: Option<u64>,
pub events: Option<Events>,
pub events_local: Option<Events>,
pub swap_events: Option<SwapEvents>,
pub stat: Option<Stat>,
}Expand description
The values of one cgroup.
Fields§
§android_group: Option<i32>Identifies the cgroup in the hierarchy created by Android’s
libprocessgroup: {apps,system}/uid_
uid: Option<u32>§pid: Option<u32>§current: Option<u64>Single-valued files. memory.current
peak: Option<u64>memory.peak
min: Option<u64>memory.min (UINT64_MAX if “max”)
low: Option<u64>memory.low (UINT64_MAX if “max”)
high: Option<u64>memory.high (UINT64_MAX if “max”)
max: Option<u64>memory.max (UINT64_MAX if “max”)
swap_current: Option<u64>memory.swap.current
swap_peak: Option<u64>memory.swap.peak
swap_high: Option<u64>memory.swap.high (UINT64_MAX if “max”)
swap_max: Option<u64>memory.swap.max (UINT64_MAX if “max”)
zswap_current: Option<u64>memory.zswap.current
zswap_max: Option<u64>memory.zswap.max (UINT64_MAX if “max”)
events: Option<Events>memory.events (including descendant cgroups).
events_local: Option<Events>memory.events.local (only this exact cgroup).
swap_events: Option<SwapEvents>memory.swap.events
stat: Option<Stat>memory.stat
Implementations§
Source§impl Cgroup
impl Cgroup
Sourcepub fn android_group(&self) -> Group
pub fn android_group(&self) -> Group
Returns the enum value of android_group, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_android_group(&mut self, value: Group)
pub fn set_android_group(&mut self, value: Group)
Sets android_group to the provided enum value.
Sourcepub fn current(&self) -> u64
pub fn current(&self) -> u64
Returns the value of current, or the default value if current is unset.
Sourcepub fn swap_current(&self) -> u64
pub fn swap_current(&self) -> u64
Returns the value of swap_current, or the default value if swap_current is unset.
Sourcepub fn swap_peak(&self) -> u64
pub fn swap_peak(&self) -> u64
Returns the value of swap_peak, or the default value if swap_peak is unset.
Sourcepub fn swap_high(&self) -> u64
pub fn swap_high(&self) -> u64
Returns the value of swap_high, or the default value if swap_high is unset.
Sourcepub fn swap_max(&self) -> u64
pub fn swap_max(&self) -> u64
Returns the value of swap_max, or the default value if swap_max is unset.
Sourcepub fn zswap_current(&self) -> u64
pub fn zswap_current(&self) -> u64
Returns the value of zswap_current, or the default value if zswap_current is unset.
Trait Implementations§
impl Copy for Cgroup
impl Eq for Cgroup
Source§impl Message for Cgroup
impl Message for Cgroup
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.