[][src]Enum eventstore::types::LocatedEvents

pub enum LocatedEvents<A> {
    EndOfStream,
    Events {
        events: Vec<ResolvedEvent>,
        next: Option<A>,
    },
}

Indicates either if we reach the end of a stream or a slice of events when reading a stream. LocatedEvents is polymorphic so it can be used by either '$all' stream (that requires Position) and regular stream that requires event sequence numer.

Variants

EndOfStream

Indicates the end of the stream has been reached.

Events

Gives the read events and a possible starting position for the next batch. if next is None, it means we have reached the end of the stream.

Fields of Events

events: Vec<ResolvedEvent>next: Option<A>

Methods

impl<A> LocatedEvents<A>[src]

pub fn is_end_of_stream(&self) -> bool[src]

Indicates if we have reached the end of the stream we read.

Trait Implementations

impl<A: Debug> Debug for LocatedEvents<A>[src]

Auto Trait Implementations

impl<A> Send for LocatedEvents<A> where
    A: Send

impl<A> Sync for LocatedEvents<A> where
    A: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T