Struct readclock::ClockValues
source · pub struct ClockValues {
pub clock_monotonic: Duration,
pub clock_boottime: Duration,
}
Expand description
ClockValues hold the values read out from the kernel via clock_gettime syscall.
Fields§
§clock_monotonic: Duration
§clock_boottime: Duration
Implementations§
source§impl ClockValues
impl ClockValues
pub fn now() -> Self
pub fn clock_monotonic(&self) -> Duration
pub fn clock_boottime(&self) -> Duration
Trait Implementations§
source§impl Debug for ClockValues
impl Debug for ClockValues
source§impl<'de> Deserialize<'de> for ClockValues
impl<'de> Deserialize<'de> for ClockValues
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ClockValues
impl Send for ClockValues
impl Sync for ClockValues
impl Unpin for ClockValues
impl UnwindSafe for ClockValues
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