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