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

pub struct TimeDiff(_);

A time difference between two timestamps.

Implementations

impl TimeDiff[src]

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

Returns the timestamp as the number of milliseconds since the Unix epoch

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<'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<TimeDiff> for Duration[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 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

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> RuleType for T where
    T: Eq + Ord + Copy + Debug + Hash
[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> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]