pub struct ProcessStat { /* private fields */ }Expand description
进程
Implementations§
Source§impl ProcessStat
impl ProcessStat
Sourcepub fn new() -> ProcessStat
pub fn new() -> ProcessStat
创建新的进程信息表
Sourcepub fn new_from_pid(pid: i32, cpu_frequency: f64) -> Result<ProcessStat, Error>
pub fn new_from_pid(pid: i32, cpu_frequency: f64) -> Result<ProcessStat, Error>
根据PID获取表
Trait Implementations§
Source§impl Debug for ProcessStat
impl Debug for ProcessStat
Source§impl Default for ProcessStat
impl Default for ProcessStat
Source§fn default() -> ProcessStat
fn default() -> ProcessStat
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcessStat
impl RefUnwindSafe for ProcessStat
impl Send for ProcessStat
impl Sync for ProcessStat
impl Unpin for ProcessStat
impl UnwindSafe for ProcessStat
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