Struct casper_node::types::TimeDiff[][src]

pub struct TimeDiff(_);

A time difference between two timestamps.

Implementations

impl TimeDiff[src]

pub fn millis(&self) -> u64[src]

Returns the time difference as the number of milliseconds since the Unix epoch

pub const fn from_seconds(seconds: u32) -> Self[src]

Creates a new time difference from seconds.

Trait Implementations

impl Add<TimeDiff> for Timestamp[src]

type Output = Timestamp

The resulting type after applying the + operator.

impl Add<TimeDiff> for TimeDiff[src]

type Output = TimeDiff

The resulting type after applying the + operator.

impl AddAssign<TimeDiff> for Timestamp[src]

impl AddAssign<TimeDiff> for TimeDiff[src]

impl Clone for TimeDiff[src]

impl Copy for TimeDiff[src]

impl DataSize for TimeDiff[src]

impl Debug for TimeDiff[src]

impl Default for TimeDiff[src]

impl<'de> Deserialize<'de> for TimeDiff[src]

impl Display for TimeDiff[src]

impl Div<TimeDiff> for Timestamp[src]

type Output = u64

The resulting type after applying the / operator.

impl Div<u64> for TimeDiff[src]

type Output = TimeDiff

The resulting type after applying the / operator.

impl Eq for TimeDiff[src]

impl From<Duration> for TimeDiff[src]

impl From<u64> for TimeDiff[src]

impl FromBytes for TimeDiff[src]

impl FromStr for TimeDiff[src]

type Err = DurationError

The associated error which can be returned from parsing.

impl Hash for TimeDiff[src]

impl JsonSchema for TimeDiff[src]

impl Mul<u64> for TimeDiff[src]

type Output = TimeDiff

The resulting type after applying the * operator.

impl Ord for TimeDiff[src]

impl PartialEq<TimeDiff> for TimeDiff[src]

impl PartialOrd<TimeDiff> for TimeDiff[src]

impl Rem<TimeDiff> for Timestamp[src]

type Output = TimeDiff

The resulting type after applying the % operator.

impl Serialize for TimeDiff[src]

impl StructuralEq for TimeDiff[src]

impl StructuralPartialEq for TimeDiff[src]

impl Sub<TimeDiff> for Timestamp[src]

type Output = Timestamp

The resulting type after applying the - operator.

impl Sub<TimeDiff> for TimeDiff[src]

type Output = TimeDiff

The resulting type after applying the - operator.

impl SubAssign<TimeDiff> for TimeDiff[src]

impl ToBytes for TimeDiff[src]

Auto Trait Implementations

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> CallHasher for T where
    T: Hash

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> FmtForward for T

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

impl<T, Rhs, Output> GroupOps<Rhs, Output> for T where
    T: Add<Rhs, Output = Output> + Sub<Rhs, Output = Output> + AddAssign<Rhs> + SubAssign<Rhs>, 

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> RuleType for T where
    T: Copy + Debug + Eq + Hash + Ord
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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> TryConv for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]