pub enum TimestampingMode {
ClientPrefer,
ClientRequire,
Arrival,
}๐Deprecated since 0.21.1:
This crate has been renamed to s2-sdk. Please update your Cargo.toml to use s2-sdk instead.
Expand description
Timestamping mode. Note that arrival time is always in milliseconds since Unix epoch.
Variantsยง
ClientPrefer
๐Deprecated since 0.21.1:
This crate has been renamed to s2-sdk. Please update your Cargo.toml to use s2-sdk instead.
Prefer client-specified timestamp if present otherwise use arrival time.
ClientRequire
๐Deprecated since 0.21.1:
This crate has been renamed to s2-sdk. Please update your Cargo.toml to use s2-sdk instead.
Require a client-specified timestamp and reject the append if it is missing.
Arrival
๐Deprecated since 0.21.1:
This crate has been renamed to s2-sdk. Please update your Cargo.toml to use s2-sdk instead.
Use the arrival time and ignore any client-specified timestamp.
Trait Implementationsยง
Sourceยงimpl Clone for TimestampingMode
impl Clone for TimestampingMode
Sourceยงfn clone(&self) -> TimestampingMode
fn clone(&self) -> TimestampingMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimestampingMode
Sourceยงimpl Debug for TimestampingMode
impl Debug for TimestampingMode
impl Eq for TimestampingMode
Sourceยงimpl PartialEq for TimestampingMode
impl PartialEq for TimestampingMode
Sourceยงfn eq(&self, other: &TimestampingMode) -> bool
fn eq(&self, other: &TimestampingMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TimestampingMode
Auto Trait Implementationsยง
impl Freeze for TimestampingMode
impl RefUnwindSafe for TimestampingMode
impl Send for TimestampingMode
impl Sync for TimestampingMode
impl Unpin for TimestampingMode
impl UnsafeUnpin for TimestampingMode
impl UnwindSafe for TimestampingMode
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,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Sourceยงfn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request