Enum eventstore_tcp::ExpectedVersion [] [src]

pub enum ExpectedVersion {
    Any,
    NewStream,
    Exact(StreamVersion),
}

ExpectedVersion represents the different modes of optimistic locking when writing to a stream using WriteEventsBuilder.

Variants

No optimistic locking

Expect a stream not to exist

Expect exact number of events in the stream

Trait Implementations

impl Debug for ExpectedVersion
[src]

Formats the value using the given formatter.

impl Clone for ExpectedVersion
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for ExpectedVersion
[src]

impl PartialEq for ExpectedVersion
[src]

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

This method tests for !=.

impl Copy for ExpectedVersion
[src]

impl Into<i32> for ExpectedVersion
[src]

Returns the wire representation.

impl From<StreamVersion> for ExpectedVersion
[src]

Performs the conversion.