[−][src]Struct casper_node::types::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.
fn add(self, diff: TimeDiff) -> Timestamp
[src]
impl Add<TimeDiff> for TimeDiff
[src]
type Output = TimeDiff
The resulting type after applying the +
operator.
fn add(self, rhs: TimeDiff) -> TimeDiff
[src]
impl AddAssign<TimeDiff> for Timestamp
[src]
fn add_assign(&mut self, rhs: TimeDiff)
[src]
impl AddAssign<TimeDiff> for TimeDiff
[src]
fn add_assign(&mut self, rhs: TimeDiff)
[src]
impl Clone for TimeDiff
[src]
impl Copy for TimeDiff
[src]
impl DataSize for TimeDiff
[src]
const IS_DYNAMIC: bool
[src]
const STATIC_HEAP_SIZE: usize
[src]
fn estimate_heap_size(&self) -> usize
[src]
impl Debug for TimeDiff
[src]
impl<'de> Deserialize<'de> for TimeDiff
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl Display for TimeDiff
[src]
impl Div<TimeDiff> for Timestamp
[src]
type Output = u64
The resulting type after applying the /
operator.
fn div(self, rhs: TimeDiff) -> u64
[src]
impl Div<u64> for TimeDiff
[src]
type Output = TimeDiff
The resulting type after applying the /
operator.
fn div(self, rhs: u64) -> TimeDiff
[src]
impl Eq for TimeDiff
[src]
impl From<TimeDiff> for Duration
[src]
impl From<u64> for TimeDiff
[src]
impl FromBytes for TimeDiff
[src]
fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>
[src]
fn from_vec(bytes: Vec<u8>) -> Result<(Self, Vec<u8>), Error>
[src]
impl FromStr for TimeDiff
[src]
type Err = DurationError
The associated error which can be returned from parsing.
fn from_str(value: &str) -> Result<Self, Self::Err>
[src]
impl Hash for TimeDiff
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Mul<u64> for TimeDiff
[src]
type Output = TimeDiff
The resulting type after applying the *
operator.
fn mul(self, rhs: u64) -> TimeDiff
[src]
impl Ord for TimeDiff
[src]
fn cmp(&self, other: &TimeDiff) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TimeDiff> for TimeDiff
[src]
impl PartialOrd<TimeDiff> for TimeDiff
[src]
fn partial_cmp(&self, other: &TimeDiff) -> Option<Ordering>
[src]
fn lt(&self, other: &TimeDiff) -> bool
[src]
fn le(&self, other: &TimeDiff) -> bool
[src]
fn gt(&self, other: &TimeDiff) -> bool
[src]
fn ge(&self, other: &TimeDiff) -> bool
[src]
impl Rem<TimeDiff> for Timestamp
[src]
type Output = TimeDiff
The resulting type after applying the %
operator.
fn rem(self, diff: TimeDiff) -> TimeDiff
[src]
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.
fn sub(self, diff: TimeDiff) -> Timestamp
[src]
impl Sub<TimeDiff> for TimeDiff
[src]
type Output = TimeDiff
The resulting type after applying the -
operator.
fn sub(self, rhs: TimeDiff) -> TimeDiff
[src]
impl SubAssign<TimeDiff> for TimeDiff
[src]
fn sub_assign(&mut self, rhs: TimeDiff)
[src]
impl ToBytes for TimeDiff
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimeDiff
impl Send for TimeDiff
impl Sync for TimeDiff
impl Unpin for TimeDiff
impl UnwindSafe for TimeDiff
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> FromBits<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RuleType for T where
T: Eq + Ord + Copy + Debug + Hash,
[src]
T: Eq + Ord + Copy + Debug + Hash,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,