Struct eventstore_tcp::StreamVersion
[−]
[src]
pub struct StreamVersion(_);
StreamVersion
represents the valid values for a stream version which is the same as the
event number of the latest event. As such, values are non-negative integers up to
i32::max_value
. Negative values of i32
have special meaning in the protocol, and are
restricted from being used with this type.
Conversions to StreamVersion are quite horrible until TryFrom is stabilized.
Methods
impl StreamVersion
[src]
fn from(version: u32) -> Self
Converts the value to a StreamVersion or panics if the value is out of range
fn from_opt(version: u32) -> Option<Self>
Converts the value to a StreamVersion returning None if the input is out of range.
Trait Implementations
impl Debug for StreamVersion
[src]
impl Clone for StreamVersion
[src]
fn clone(&self) -> StreamVersion
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 StreamVersion
[src]
impl PartialEq for StreamVersion
[src]
fn eq(&self, __arg_0: &StreamVersion) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StreamVersion) -> bool
This method tests for !=
.