pub struct ProcessInfo<'a>(pub &'a Process);Tuple Fields§
§0: &'a ProcessImplementations§
Source§impl<'a> ProcessInfo<'a>
impl<'a> ProcessInfo<'a>
pub fn schema() -> Schema
Sourcepub fn to_batch(&self, schema: SchemaRef) -> Result<RecordBatch, Error>
pub fn to_batch(&self, schema: SchemaRef) -> Result<RecordBatch, Error>
Converts the process info to a batch(with single row).
pub fn pid(&self) -> Pid
pub fn name(&self) -> String
pub fn cpu_usage(&self) -> f32
pub fn memory(&self) -> u64
pub fn virtual_memory(&self) -> u64
pub fn start_time(&self) -> u64
pub fn run_time(&self) -> u64
pub fn status(&self) -> String
pub fn parent(&self) -> Option<i64>
pub fn user_id(&self) -> Option<i64>
pub fn group_id(&self) -> Option<i64>
pub fn effective_user_id(&self) -> Option<i64>
pub fn effective_group_id(&self) -> Option<i64>
pub fn session_id(&self) -> Option<i64>
pub fn accumulated_cpu_time(&self) -> u64
Auto Trait Implementations§
impl<'a> Freeze for ProcessInfo<'a>
impl<'a> RefUnwindSafe for ProcessInfo<'a>
impl<'a> Send for ProcessInfo<'a>
impl<'a> Sync for ProcessInfo<'a>
impl<'a> Unpin for ProcessInfo<'a>
impl<'a> UnwindSafe for ProcessInfo<'a>
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