pub enum Timestamp {
NotAvailable,
CreateTime(i64),
LogAppendTime(i64),
}Expand description
Timestamp of a Kafka message.
Variants§
NotAvailable
Timestamp not available.
CreateTime(i64)
Message creation time.
LogAppendTime(i64)
Log append time.
Implementations§
Trait Implementations§
Source§impl From<SystemTime> for Timestamp
Available on non-madsim only.
impl From<SystemTime> for Timestamp
Available on non-
madsim only.Source§fn from(system_time: SystemTime) -> Timestamp
fn from(system_time: SystemTime) -> Timestamp
Converts to this type from the input type.
impl Copy for Timestamp
Available on non-
madsim only.impl Eq for Timestamp
Available on non-
madsim only.impl StructuralPartialEq for Timestamp
Available on non-
madsim only.Auto Trait Implementations§
impl Freeze for Timestamp
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnwindSafe for Timestamp
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