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
First
The first event ever
Exact(u64)
Exact position
Last
The last event written to the database at the moment
Methods
impl LogPosition
[src]
fn from_opt(pos: u64) -> Option<LogPosition>
Wraps the value into LogPosition or None, if it is larger than i64
Trait Implementations
impl Debug for LogPosition
[src]
impl Clone for LogPosition
[src]
fn clone(&self) -> LogPosition
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for LogPosition
[src]
impl PartialOrd for LogPosition
[src]
fn partial_cmp(&self, __arg_0: &LogPosition) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &LogPosition) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &LogPosition) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &LogPosition) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &LogPosition) -> bool
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]
fn cmp(&self, __arg_0: &LogPosition) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Copy for LogPosition
[src]
impl PartialEq<LogPosition> for LogPosition
[src]
fn eq(&self, other: &LogPosition) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl From<i64> for LogPosition
[src]
fn from(val: i64) -> LogPosition
Performs the conversion.