Enum rdkafka::message::Timestamp[][src]

pub enum Timestamp {
    NotAvailable,
    CreateTime(i64),
    LogAppendTime(i64),
}

Timestamp of a message

Variants

Timestamp not available

Message creation time

Log append time

Methods

impl Timestamp
[src]

Convert the timestamp to milliseconds since epoch.

Creates a new Timestamp::CreateTime representing the current time.

Trait Implementations

impl Debug for Timestamp
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Timestamp
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Timestamp
[src]

impl Clone for Timestamp
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Timestamp
[src]

impl From<i64> for Timestamp
[src]

Performs the conversion.

impl From<SystemTime> for Timestamp
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Timestamp

impl Sync for Timestamp