[][src]Struct hybrid_clocks::WallMST

pub struct WallMST(_);

Representation of our timestamp.

Implementations

impl WallMST[src]

pub const TICKS_PER_SEC: u64[src]

The number of ticks per seconds: 2^(-16).

pub fn duration_since_epoch(self) -> Result<Duration>[src]

Returns the Duration since the unix epoch.

pub fn as_systemtime(self) -> Result<SystemTime>[src]

Returns a SystemTime representing this timestamp.

pub fn from_timespec(t: SystemTime) -> Result<Self>[src]

Returns a WallMST representing the SystemTime.

pub fn from_since_epoch(since_epoch: Duration) -> Result<Self>[src]

Returns a WallMST from a Duration since the unix epoch.

pub fn as_u64(self) -> u64[src]

Returns the number of ticks since the unix epoch.

pub fn of_u64(val: u64) -> Self[src]

Builds a WallMST from the number of ticks since the unix epoch.

Trait Implementations

impl Clone for WallMST[src]

impl Copy for WallMST[src]

impl Debug for WallMST[src]

impl Display for WallMST[src]

impl Eq for WallMST[src]

impl Hash for WallMST[src]

impl Ord for WallMST[src]

impl PartialEq<WallMST> for WallMST[src]

impl PartialOrd<WallMST> for WallMST[src]

impl StructuralEq for WallMST[src]

impl StructuralPartialEq for WallMST[src]

impl Sub<WallMST> for WallMST[src]

type Output = Duration

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for WallMST

impl Send for WallMST

impl Sync for WallMST

impl Unpin for WallMST

impl UnwindSafe for WallMST

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.