[−][src]Enum eventstore::types::LocatedEvents
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
Auto Trait Implementations
impl<A> Send for LocatedEvents<A> where
A: Send,
A: Send,
impl<A> Sync for LocatedEvents<A> where
A: Sync,
A: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,