Enum eventstore_tcp::EventNumber [] [src]

pub enum EventNumber {
    First,
    Exact(StreamVersion),
    Last,
}

EventNumber is similar to StreamVersion and ExpectedVersion but is used when specifying a position to read from in the stream. Allows specifying the first or last (when reading backwards) event in addition to exact event number.

Variants

The first event in a stream

Exactly the given event number

The last event in a stream

Trait Implementations

impl Debug for EventNumber
[src]

Formats the value using the given formatter.

impl Clone for EventNumber
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for EventNumber
[src]

impl Copy for EventNumber
[src]

impl PartialEq<EventNumber> for EventNumber
[src]

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

This method tests for !=.

impl From<StreamVersion> for EventNumber
[src]

Performs the conversion.

impl Into<i32> for EventNumber
[src]

Returns the wire representation.