#[repr(C)]pub struct ProcessStatsV1 {
pub pid: u64,
pub parent_pid: u64,
pub pages_user: u64,
pub pages_kernel: u64,
pub total_threads: u64,
pub total_children: u64,
pub active_threads: u64,
pub active_children: u64,
pub debug_name_bytes: [u8; 32],
pub debug_name_len: u8,
pub active: u8,
}Fields§
§pid: u64§parent_pid: u64§pages_user: u64§pages_kernel: u64§total_threads: u64§total_children: u64§active_threads: u64§active_children: u64§debug_name_bytes: [u8; 32]§debug_name_len: u8§active: u8Implementations§
Source§impl ProcessStatsV1
impl ProcessStatsV1
pub fn list(start: u64, buf: &mut [ProcessStatsV1]) -> Result<usize, ErrorCode>
pub fn list_children( parent: u64, buf: &mut [ProcessStatsV1], ) -> Result<usize, ErrorCode>
pub fn debug_name(&self) -> &str
pub fn total_bytes(&self) -> u64
Trait Implementations§
Source§impl Default for ProcessStatsV1
impl Default for ProcessStatsV1
Source§fn default() -> ProcessStatsV1
fn default() -> ProcessStatsV1
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcessStatsV1
impl RefUnwindSafe for ProcessStatsV1
impl Send for ProcessStatsV1
impl Sync for ProcessStatsV1
impl Unpin for ProcessStatsV1
impl UnwindSafe for ProcessStatsV1
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