[][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> RefUnwindSafe for LocatedEvents<A> where
    A: RefUnwindSafe

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

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

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

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

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]