Struct rustps::ProcessStat
source · pub struct ProcessStat { /* private fields */ }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 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