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]

Converts the value to a StreamVersion or panics if the value is out of range

Converts the value to a StreamVersion returning None if the input is out of range.

Trait Implementations

impl Debug for StreamVersion
[src]

Formats the value using the given formatter.

impl Clone for StreamVersion
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for StreamVersion
[src]

impl PartialEq for StreamVersion
[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 StreamVersion
[src]

impl Into<i32> for StreamVersion
[src]

Returns the wire representation.