Struct containerd_shim_protos::cgroups::metrics::MemoryStat
source · [−]pub struct MemoryStat {Show 38 fields
pub cache: u64,
pub rss: u64,
pub rss_huge: u64,
pub mapped_file: u64,
pub dirty: u64,
pub writeback: u64,
pub pg_pg_in: u64,
pub pg_pg_out: u64,
pub pg_fault: u64,
pub pg_maj_fault: u64,
pub inactive_anon: u64,
pub active_anon: u64,
pub inactive_file: u64,
pub active_file: u64,
pub unevictable: u64,
pub hierarchical_memory_limit: u64,
pub hierarchical_swap_limit: u64,
pub total_cache: u64,
pub total_rss: u64,
pub total_rss_huge: u64,
pub total_mapped_file: u64,
pub total_dirty: u64,
pub total_writeback: u64,
pub total_pg_pg_in: u64,
pub total_pg_pg_out: u64,
pub total_pg_fault: u64,
pub total_pg_maj_fault: u64,
pub total_inactive_anon: u64,
pub total_active_anon: u64,
pub total_inactive_file: u64,
pub total_active_file: u64,
pub total_unevictable: u64,
pub usage: SingularPtrField<MemoryEntry>,
pub swap: SingularPtrField<MemoryEntry>,
pub kernel: SingularPtrField<MemoryEntry>,
pub kernel_tcp: SingularPtrField<MemoryEntry>,
pub unknown_fields: UnknownFields,
pub cached_size: CachedSize,
}
Fields
cache: u64
rss: u64
rss_huge: u64
mapped_file: u64
dirty: u64
writeback: u64
pg_pg_in: u64
pg_pg_out: u64
pg_fault: u64
pg_maj_fault: u64
inactive_anon: u64
active_anon: u64
inactive_file: u64
active_file: u64
unevictable: u64
hierarchical_memory_limit: u64
hierarchical_swap_limit: u64
total_cache: u64
total_rss: u64
total_rss_huge: u64
total_mapped_file: u64
total_dirty: u64
total_writeback: u64
total_pg_pg_in: u64
total_pg_pg_out: u64
total_pg_fault: u64
total_pg_maj_fault: u64
total_inactive_anon: u64
total_active_anon: u64
total_inactive_file: u64
total_active_file: u64
total_unevictable: u64
usage: SingularPtrField<MemoryEntry>
swap: SingularPtrField<MemoryEntry>
kernel: SingularPtrField<MemoryEntry>
kernel_tcp: SingularPtrField<MemoryEntry>
unknown_fields: UnknownFields
cached_size: CachedSize
Implementations
sourceimpl MemoryStat
impl MemoryStat
pub fn new() -> MemoryStat
pub fn get_cache(&self) -> u64
pub fn clear_cache(&mut self)
pub fn set_cache(&mut self, v: u64)
pub fn get_rss(&self) -> u64
pub fn clear_rss(&mut self)
pub fn set_rss(&mut self, v: u64)
pub fn get_rss_huge(&self) -> u64
pub fn clear_rss_huge(&mut self)
pub fn set_rss_huge(&mut self, v: u64)
pub fn get_mapped_file(&self) -> u64
pub fn clear_mapped_file(&mut self)
pub fn set_mapped_file(&mut self, v: u64)
pub fn get_dirty(&self) -> u64
pub fn clear_dirty(&mut self)
pub fn set_dirty(&mut self, v: u64)
pub fn get_writeback(&self) -> u64
pub fn clear_writeback(&mut self)
pub fn set_writeback(&mut self, v: u64)
pub fn get_pg_pg_in(&self) -> u64
pub fn clear_pg_pg_in(&mut self)
pub fn set_pg_pg_in(&mut self, v: u64)
pub fn get_pg_pg_out(&self) -> u64
pub fn clear_pg_pg_out(&mut self)
pub fn set_pg_pg_out(&mut self, v: u64)
pub fn get_pg_fault(&self) -> u64
pub fn clear_pg_fault(&mut self)
pub fn set_pg_fault(&mut self, v: u64)
pub fn get_pg_maj_fault(&self) -> u64
pub fn clear_pg_maj_fault(&mut self)
pub fn set_pg_maj_fault(&mut self, v: u64)
pub fn get_inactive_anon(&self) -> u64
pub fn clear_inactive_anon(&mut self)
pub fn set_inactive_anon(&mut self, v: u64)
pub fn get_active_anon(&self) -> u64
pub fn clear_active_anon(&mut self)
pub fn set_active_anon(&mut self, v: u64)
pub fn get_inactive_file(&self) -> u64
pub fn clear_inactive_file(&mut self)
pub fn set_inactive_file(&mut self, v: u64)
pub fn get_active_file(&self) -> u64
pub fn clear_active_file(&mut self)
pub fn set_active_file(&mut self, v: u64)
pub fn get_unevictable(&self) -> u64
pub fn clear_unevictable(&mut self)
pub fn set_unevictable(&mut self, v: u64)
pub fn get_hierarchical_memory_limit(&self) -> u64
pub fn clear_hierarchical_memory_limit(&mut self)
pub fn set_hierarchical_memory_limit(&mut self, v: u64)
pub fn get_hierarchical_swap_limit(&self) -> u64
pub fn clear_hierarchical_swap_limit(&mut self)
pub fn set_hierarchical_swap_limit(&mut self, v: u64)
pub fn get_total_cache(&self) -> u64
pub fn clear_total_cache(&mut self)
pub fn set_total_cache(&mut self, v: u64)
pub fn get_total_rss(&self) -> u64
pub fn clear_total_rss(&mut self)
pub fn set_total_rss(&mut self, v: u64)
pub fn get_total_rss_huge(&self) -> u64
pub fn clear_total_rss_huge(&mut self)
pub fn set_total_rss_huge(&mut self, v: u64)
pub fn get_total_mapped_file(&self) -> u64
pub fn clear_total_mapped_file(&mut self)
pub fn set_total_mapped_file(&mut self, v: u64)
pub fn get_total_dirty(&self) -> u64
pub fn clear_total_dirty(&mut self)
pub fn set_total_dirty(&mut self, v: u64)
pub fn get_total_writeback(&self) -> u64
pub fn clear_total_writeback(&mut self)
pub fn set_total_writeback(&mut self, v: u64)
pub fn get_total_pg_pg_in(&self) -> u64
pub fn clear_total_pg_pg_in(&mut self)
pub fn set_total_pg_pg_in(&mut self, v: u64)
pub fn get_total_pg_pg_out(&self) -> u64
pub fn clear_total_pg_pg_out(&mut self)
pub fn set_total_pg_pg_out(&mut self, v: u64)
pub fn get_total_pg_fault(&self) -> u64
pub fn clear_total_pg_fault(&mut self)
pub fn set_total_pg_fault(&mut self, v: u64)
pub fn get_total_pg_maj_fault(&self) -> u64
pub fn clear_total_pg_maj_fault(&mut self)
pub fn set_total_pg_maj_fault(&mut self, v: u64)
pub fn get_total_inactive_anon(&self) -> u64
pub fn clear_total_inactive_anon(&mut self)
pub fn set_total_inactive_anon(&mut self, v: u64)
pub fn get_total_active_anon(&self) -> u64
pub fn clear_total_active_anon(&mut self)
pub fn set_total_active_anon(&mut self, v: u64)
pub fn get_total_inactive_file(&self) -> u64
pub fn clear_total_inactive_file(&mut self)
pub fn set_total_inactive_file(&mut self, v: u64)
pub fn get_total_active_file(&self) -> u64
pub fn clear_total_active_file(&mut self)
pub fn set_total_active_file(&mut self, v: u64)
pub fn get_total_unevictable(&self) -> u64
pub fn clear_total_unevictable(&mut self)
pub fn set_total_unevictable(&mut self, v: u64)
pub fn get_usage(&self) -> &MemoryEntry
pub fn clear_usage(&mut self)
pub fn has_usage(&self) -> bool
pub fn set_usage(&mut self, v: MemoryEntry)
pub fn mut_usage(&mut self) -> &mut MemoryEntry
pub fn take_usage(&mut self) -> MemoryEntry
pub fn get_swap(&self) -> &MemoryEntry
pub fn clear_swap(&mut self)
pub fn has_swap(&self) -> bool
pub fn set_swap(&mut self, v: MemoryEntry)
pub fn mut_swap(&mut self) -> &mut MemoryEntry
pub fn take_swap(&mut self) -> MemoryEntry
pub fn get_kernel(&self) -> &MemoryEntry
pub fn clear_kernel(&mut self)
pub fn has_kernel(&self) -> bool
pub fn set_kernel(&mut self, v: MemoryEntry)
pub fn mut_kernel(&mut self) -> &mut MemoryEntry
pub fn take_kernel(&mut self) -> MemoryEntry
pub fn get_kernel_tcp(&self) -> &MemoryEntry
pub fn clear_kernel_tcp(&mut self)
pub fn has_kernel_tcp(&self) -> bool
pub fn set_kernel_tcp(&mut self, v: MemoryEntry)
pub fn mut_kernel_tcp(&mut self) -> &mut MemoryEntry
pub fn take_kernel_tcp(&mut self) -> MemoryEntry
Trait Implementations
sourceimpl Clear for MemoryStat
impl Clear for MemoryStat
sourceimpl Clone for MemoryStat
impl Clone for MemoryStat
sourcefn clone(&self) -> MemoryStat
fn clone(&self) -> MemoryStat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MemoryStat
impl Debug for MemoryStat
sourceimpl Default for MemoryStat
impl Default for MemoryStat
sourcefn default() -> MemoryStat
fn default() -> MemoryStat
Returns the “default value” for a type. Read more
sourceimpl<'a> Default for &'a MemoryStat
impl<'a> Default for &'a MemoryStat
sourcefn default() -> &'a MemoryStat
fn default() -> &'a MemoryStat
Returns the “default value” for a type. Read more
sourceimpl Message for MemoryStat
impl Message for MemoryStat
sourcefn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
True iff all required fields are initialized.
Always returns true
for protobuf 3. Read more
sourcefn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
Update this message object with fields read from given stream.
sourcefn compute_size(&self) -> u32
fn compute_size(&self) -> u32
Compute and cache size of this message and all nested messages
sourcefn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
Write message to the stream. Read more
sourcefn get_cached_size(&self) -> u32
fn get_cached_size(&self) -> u32
Get size previously computed by compute_size
.
sourcefn get_unknown_fields(&self) -> &UnknownFields
fn get_unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
sourcefn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
sourcefn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
View self as mutable Any
.
sourcefn descriptor(&self) -> &'static MessageDescriptor
fn descriptor(&self) -> &'static MessageDescriptor
Message descriptor for this message, used for reflection.
sourcefn new() -> MemoryStat
fn new() -> MemoryStat
Create an empty message object. Read more
sourcefn descriptor_static() -> &'static MessageDescriptor
fn descriptor_static() -> &'static MessageDescriptor
Get message descriptor for message type. Read more
sourcefn default_instance() -> &'static MemoryStat
fn default_instance() -> &'static MemoryStat
Return a pointer to default immutable message with static lifetime. Read more
sourcefn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>
Parse message from stream.
sourcefn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
Write the message to the stream. Read more
sourcefn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
Write the message to the stream prepending the message with message length encoded as varint. Read more
sourcefn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
Write the message to the vec, prepend the message with message length encoded as varint. Read more
sourcefn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
Update this message object with fields read from given stream.
sourcefn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>
Parse message from reader. Parse stops on EOF or when error encountered. Read more
sourcefn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>
fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>
Parse message from byte array.
sourcefn check_initialized(&self) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
Check if all required fields of this object are initialized.
sourcefn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
Write the message to the writer.
sourcefn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
Write the message to bytes vec.
sourcefn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
Write the message to bytes vec.
sourcefn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
Write the message to the writer, prepend the message with message length encoded as varint. Read more
sourcefn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
fn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more
sourceimpl PartialEq<MemoryStat> for MemoryStat
impl PartialEq<MemoryStat> for MemoryStat
sourcefn eq(&self, other: &MemoryStat) -> bool
fn eq(&self, other: &MemoryStat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MemoryStat) -> bool
fn ne(&self, other: &MemoryStat) -> bool
This method tests for !=
.
sourceimpl ProtobufValue for MemoryStat
impl ProtobufValue for MemoryStat
sourcefn as_ref(&self) -> ReflectValueRef<'_>
fn as_ref(&self) -> ReflectValueRef<'_>
As ref
sourcefn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
sourcefn as_ref_copy(&self) -> ReflectValueRef<'static>
fn as_ref_copy(&self) -> ReflectValueRef<'static>
Return ProtobufValueRef
if self is Copy
. Read more
impl StructuralPartialEq for MemoryStat
Auto Trait Implementations
impl RefUnwindSafe for MemoryStat
impl Send for MemoryStat
impl Sync for MemoryStat
impl Unpin for MemoryStat
impl UnwindSafe for MemoryStat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more