[][src]Struct time_point::TimePoint

#[repr(transparent)]
pub struct TimePoint {
    pub nanos_since_zero: i64,
}

Fields

nanos_since_zero: i64

Methods

impl TimePoint[src]

pub const fn new(nanos_since_zero: i64) -> Self[src]

This does not specifically require using unix time, however, that's probably expected.

pub const fn zero() -> Self[src]

pub fn from_secs_f32(secs_since_zero: f32) -> Self[src]

pub fn from_secs_f64(secs_since_zero: f64) -> Self[src]

pub fn as_secs_f32(self) -> f32[src]

pub fn as_secs_f64(self) -> f64[src]

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

pub fn from_std_instant(rhs: Instant) -> Self[src]

pub fn into_std_instant(self) -> Instant[src]

Trait Implementations

impl Into<Instant> for TimePoint[src]

impl Eq for TimePoint[src]

impl Default for TimePoint[src]

impl Clone for TimePoint[src]

impl PartialOrd<TimePoint> for TimePoint[src]

impl PartialEq<TimePoint> for TimePoint[src]

impl Ord for TimePoint[src]

impl From<Instant> for TimePoint[src]

impl Copy for TimePoint[src]

impl Hash for TimePoint[src]

impl Add<Duration> for TimePoint[src]

type Output = TimePoint

The resulting type after applying the + operator.

impl Add<TimePoint> for Duration[src]

type Output = TimePoint

The resulting type after applying the + operator.

impl Sub<Duration> for TimePoint[src]

type Output = TimePoint

The resulting type after applying the - operator.

impl Sub<TimePoint> for TimePoint[src]

type Output = Duration

The resulting type after applying the - operator.

impl AddAssign<Duration> for TimePoint[src]

impl SubAssign<Duration> for TimePoint[src]

impl Debug for TimePoint[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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.

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

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

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