[][src]Trait eventstore::types::Slice

pub trait Slice {
    type Location: Copy;
    fn from(&self) -> Self::Location;
fn direction(&self) -> ReadDirection;
fn events(self) -> LocatedEvents<Self::Location>; }

Gathers common slice operations.

Associated Types

type Location: Copy

What kind of location this slice supports.

Loading content...

Required methods

fn from(&self) -> Self::Location

Returns the starting point of that slice.

fn direction(&self) -> ReadDirection

Returns the read direction used to fetch that slice.

fn events(self) -> LocatedEvents<Self::Location>

Returns the events fetched by that slice.

Loading content...

Implementors

impl Slice for AllSlice[src]

impl Slice for StreamSlice[src]

Loading content...