pub enum TimestampingMode {
ClientPrefer,
ClientRequire,
Arrival,
}
Expand description
Timestamping mode. Note that arrival time is always in milliseconds since Unix epoch.
Variants§
ClientPrefer
Prefer client-specified timestamp if present otherwise use arrival time.
ClientRequire
Require a client-specified timestamp and reject the append if it is missing.
Arrival
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 · 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 TimestampingMode
impl Debug for TimestampingMode
Source§impl PartialEq for TimestampingMode
impl PartialEq for TimestampingMode
impl Copy for TimestampingMode
impl Eq for TimestampingMode
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 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