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
Any
No optimistic locking
NewStream
Expect a stream not to exist
Exact(StreamVersion)
Expect exact number of events in the stream
Trait Implementations
impl Debug for ExpectedVersion
[src]
impl Clone for ExpectedVersion
[src]
fn clone(&self) -> ExpectedVersion
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 ExpectedVersion
[src]
impl PartialEq for ExpectedVersion
[src]
fn eq(&self, __arg_0: &ExpectedVersion) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ExpectedVersion) -> bool
This method tests for !=
.
impl Copy for ExpectedVersion
[src]
impl Into<i32> for ExpectedVersion
[src]
impl From<StreamVersion> for ExpectedVersion
[src]
fn from(ver: StreamVersion) -> Self
Performs the conversion.