[][src]Struct hybrid_clocks::WallNST

pub struct WallNST(_);

Implementations

impl WallNST[src]

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

Returns a SystemTime representing this timestamp.

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

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

Returns a WallNST representing the SystemTime.

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

Returns a WallNST representing the SystemTime. Fails if the time isn't representable in 64 bits.

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

Returns time in nanoseconds since the unix epoch.

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

Returns time in nanoseconds since the unix epoch.

Trait Implementations

impl Clone for WallNST[src]

impl Copy for WallNST[src]

impl Debug for WallNST[src]

impl Display for WallNST[src]

impl Eq for WallNST[src]

impl Hash for WallNST[src]

impl Ord for WallNST[src]

impl PartialEq<WallNST> for WallNST[src]

impl PartialOrd<WallNST> for WallNST[src]

impl StructuralEq for WallNST[src]

impl StructuralPartialEq for WallNST[src]

impl Sub<WallNST> for WallNST[src]

type Output = Duration

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for WallNST

impl Send for WallNST

impl Sync for WallNST

impl Unpin for WallNST

impl UnwindSafe for WallNST

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.