Enum rdkafka::message::Timestamp [−][src]
Timestamp of a message
Variants
NotAvailable
Timestamp not available
CreateTime(i64)
Message creation time
LogAppendTime(i64)
Log append time
Methods
impl Timestamp
[src]
impl Timestamp
pub fn to_millis(&self) -> Option<i64>
[src]
pub fn to_millis(&self) -> Option<i64>
Convert the timestamp to milliseconds since epoch.
pub fn now() -> Timestamp
[src]
pub fn now() -> Timestamp
Creates a new Timestamp::CreateTime
representing the current time.
Trait Implementations
impl Debug for Timestamp
[src]
impl Debug for Timestamp
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Timestamp
[src]
impl PartialEq for Timestamp
fn eq(&self, other: &Timestamp) -> bool
[src]
fn eq(&self, other: &Timestamp) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Timestamp) -> bool
[src]
fn ne(&self, other: &Timestamp) -> bool
This method tests for !=
.
impl Eq for Timestamp
[src]
impl Eq for Timestamp
impl Clone for Timestamp
[src]
impl Clone for Timestamp
fn clone(&self) -> Timestamp
[src]
fn clone(&self) -> Timestamp
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Timestamp
[src]
impl Copy for Timestamp
impl From<i64> for Timestamp
[src]
impl From<i64> for Timestamp
impl From<SystemTime> for Timestamp
[src]
impl From<SystemTime> for Timestamp
fn from(system_time: SystemTime) -> Timestamp
[src]
fn from(system_time: SystemTime) -> Timestamp
Performs the conversion.