pub struct TimestampMillis;Expand description
Reads the record timestamp in milliseconds since the epoch, when present.
Trait Implementations§
Source§impl Clone for TimestampMillis
impl Clone for TimestampMillis
Source§impl ContextField for TimestampMillis
impl ContextField for TimestampMillis
Source§type Context = KafkaContext
type Context = KafkaContext
The per-delivery context type this key reads from.
Source§fn read(self, src: &KafkaContext) -> Option<i64>
fn read(self, src: &KafkaContext) -> Option<i64>
Reads this key’s field out of
src. Named apart from Field::get so a key
implementing both traits stays unambiguous to call.impl Copy for TimestampMillis
Source§impl Debug for TimestampMillis
impl Debug for TimestampMillis
Source§impl Default for TimestampMillis
impl Default for TimestampMillis
impl Eq for TimestampMillis
Source§impl Field<KafkaContext> for TimestampMillis
impl Field<KafkaContext> for TimestampMillis
Source§impl PartialEq for TimestampMillis
impl PartialEq 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 UnsafeUnpin 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,
Source§impl<K> CtxKey for Kwhere
K: ContextField,
impl<K> CtxKey for Kwhere
K: ContextField,
Source§type Value = <K as ContextField>::Value
type Value = <K as ContextField>::Value
The owned value the extractor binds.
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.impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more