pub struct TimestampMillis(i64);Expand description
Unix timestamp in millisecond resolution.
Negative timestamp is allowed, which represents timestamp before ‘1970-01-01T00:00:00’.
Tuple Fields§
§0: i64Implementations§
Source§impl TimestampMillis
 
impl TimestampMillis
Sourcepub const INF: TimestampMillis
 
pub const INF: TimestampMillis
Positive infinity.
Sourcepub const MAX: TimestampMillis
 
pub const MAX: TimestampMillis
Maximum value of a timestamp.
The maximum value of i64 is reserved for infinity.
Sourcepub const MIN: TimestampMillis
 
pub const MIN: TimestampMillis
Minimum value of a timestamp.
Sourcepub const fn new(ms: i64) -> TimestampMillis
 
pub const fn new(ms: i64) -> TimestampMillis
Create a new timestamp from unix timestamp in milliseconds.
Trait Implementations§
Source§impl Clone for TimestampMillis
 
impl Clone for TimestampMillis
Source§fn clone(&self) -> TimestampMillis
 
fn clone(&self) -> TimestampMillis
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for TimestampMillis
 
impl Debug for TimestampMillis
Source§impl Default for TimestampMillis
 
impl Default for TimestampMillis
Source§fn default() -> TimestampMillis
 
fn default() -> TimestampMillis
Returns the “default value” for a type. Read more
Source§impl From<TimestampMillis> for i64
 
impl From<TimestampMillis> for i64
Source§fn from(ts: TimestampMillis) -> Self
 
fn from(ts: TimestampMillis) -> Self
Converts to this type from the input type.
Source§impl From<i64> for TimestampMillis
 
impl From<i64> for TimestampMillis
Source§fn from(ms: i64) -> TimestampMillis
 
fn from(ms: i64) -> TimestampMillis
Converts to this type from the input type.
Source§impl Hash for TimestampMillis
 
impl Hash for TimestampMillis
Source§impl Ord for TimestampMillis
 
impl Ord for TimestampMillis
Source§fn cmp(&self, other: &TimestampMillis) -> Ordering
 
fn cmp(&self, other: &TimestampMillis) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<TimestampMillis> for i64
 
impl PartialEq<TimestampMillis> for i64
Source§impl PartialEq<i64> for TimestampMillis
 
impl PartialEq<i64> for TimestampMillis
Source§impl PartialEq for TimestampMillis
 
impl PartialEq for TimestampMillis
Source§impl PartialOrd<TimestampMillis> for i64
 
impl PartialOrd<TimestampMillis> for i64
Source§impl PartialOrd<i64> for TimestampMillis
 
impl PartialOrd<i64> for TimestampMillis
Source§impl PartialOrd for TimestampMillis
 
impl PartialOrd for TimestampMillis
impl Copy for TimestampMillis
impl Eq for TimestampMillis
impl StructuralPartialEq for TimestampMillis
Auto Trait Implementations§
impl Freeze for TimestampMillis
impl RefUnwindSafe for TimestampMillis
impl Send for TimestampMillis
impl Sync for TimestampMillis
impl Unpin for TimestampMillis
impl UnwindSafe for TimestampMillis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
 
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
 
fn into_request(self) -> Request<T>
Wrap the input message 
T in a tonic::Request§impl<L> LayerExt<L> for L
 
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
    L: Layer<S>,
 
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
    L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].