Struct cpu_monitor::CpuInstant [−][src]
pub struct CpuInstant { /* fields omitted */ }
Like std::time::Instant
, but with information about the cpu usage stats.
Methods
impl CpuInstant
[src]
impl CpuInstant
pub fn now() -> Result<CpuInstant>
[src]
pub fn now() -> Result<CpuInstant>
Get the current instant.
The main constructor method of the crate.
pub fn instant(&self) -> Instant
[src]
pub fn instant(&self) -> Instant
Get the wrapped time::Instant
.
Trait Implementations
impl Debug for CpuInstant
[src]
impl Debug for CpuInstant
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for CpuInstant
[src]
impl Copy for CpuInstant
impl Clone for CpuInstant
[src]
impl Clone for CpuInstant
fn clone(&self) -> CpuInstant
[src]
fn clone(&self) -> CpuInstant
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Sub for CpuInstant
[src]
impl Sub for CpuInstant
type Output = CpuDuration
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self::Output
[src]
fn sub(self, rhs: Self) -> Self::Output
Performs the -
operation.
Auto Trait Implementations
impl Send for CpuInstant
impl Send for CpuInstant
impl Sync for CpuInstant
impl Sync for CpuInstant