Trait eventstore::prelude::ToCount[][src]

pub trait ToCount<'a>: Sealed {
    type Selection;
    fn to_count(&self) -> usize;
#[must_use] fn select<'async_trait>(
        self,
        stream: BoxStream<'a, Result<ResolvedEvent>>
    ) -> Pin<Box<dyn Future<Output = Result<Self::Selection>> + Send + 'async_trait>>
    where
        'a: 'async_trait,
        Self: 'async_trait
; }

Associated Types

Loading content...

Required methods

fn to_count(&self) -> usize[src]

#[must_use]fn select<'async_trait>(
    self,
    stream: BoxStream<'a, Result<ResolvedEvent>>
) -> Pin<Box<dyn Future<Output = Result<Self::Selection>> + Send + 'async_trait>> where
    'a: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementations on Foreign Types

impl<'a> ToCount<'a> for usize[src]

type Selection = BoxStream<'a, Result<ResolvedEvent>>

Loading content...

Implementors

impl<'a> ToCount<'a> for All[src]

type Selection = BoxStream<'a, Result<ResolvedEvent>>

impl<'a> ToCount<'a> for Single[src]

type Selection = Option<ResolvedEvent>

Loading content...