pub struct Uptime {
pub up: Duration,
pub idle: Duration,
}
Fields§
§up: Duration
The time the system has been up for.
idle: Duration
The time any core has been idle for. This may be more than the uptime if the system has multiple cores.
Implementations§
Auto Trait Implementations§
impl Freeze for Uptime
impl RefUnwindSafe for Uptime
impl Send for Uptime
impl Sync for Uptime
impl Unpin for Uptime
impl UnwindSafe for Uptime
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