Enum eventstore_tcp::LogPosition [] [src]

pub enum LogPosition {
    First,
    Exact(u64),
    Last,
}

Global unique position in the EventStore, used when reading all events. Range -1..i64::max_value()

Variants

The first event ever

Exact position

The last event written to the database at the moment

Methods

impl LogPosition
[src]

Wraps the value into LogPosition or None, if it is larger than i64

Trait Implementations

impl Debug for LogPosition
[src]

Formats the value using the given formatter.

impl Clone for LogPosition
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for LogPosition
[src]

impl PartialOrd for LogPosition
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for LogPosition
[src]

This method returns an Ordering between self and other. Read more

impl Copy for LogPosition
[src]

impl PartialEq<LogPosition> for LogPosition
[src]

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

This method tests for !=.

impl From<i64> for LogPosition
[src]

Performs the conversion.

impl Into<i64> for LogPosition
[src]

Performs the conversion.