pub struct CatchUpSubscription { /* private fields */ }Implementations§
Source§impl CatchUpSubscription
impl CatchUpSubscription
Sourcepub fn new(
checkpoint: SubscriptionCheckpoint,
batch_size: usize,
) -> Result<Self>
pub fn new( checkpoint: SubscriptionCheckpoint, batch_size: usize, ) -> Result<Self>
pub const fn checkpoint(&self) -> SubscriptionCheckpoint
Sourcepub fn poll<E, S>(&mut self, store: &S) -> Vec<StoredEvent<E>>where
E: Clone,
S: EventStore<E>,
pub fn poll<E, S>(&mut self, store: &S) -> Vec<StoredEvent<E>>where
E: Clone,
S: EventStore<E>,
Returns the next batch without advancing the durable checkpoint.
Trait Implementations§
Source§impl Clone for CatchUpSubscription
impl Clone for CatchUpSubscription
Source§fn clone(&self) -> CatchUpSubscription
fn clone(&self) -> CatchUpSubscription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CatchUpSubscription
impl Debug for CatchUpSubscription
impl Eq for CatchUpSubscription
Source§impl PartialEq for CatchUpSubscription
impl PartialEq for CatchUpSubscription
impl StructuralPartialEq for CatchUpSubscription
Auto Trait Implementations§
impl Freeze for CatchUpSubscription
impl RefUnwindSafe for CatchUpSubscription
impl Send for CatchUpSubscription
impl Sync for CatchUpSubscription
impl Unpin for CatchUpSubscription
impl UnsafeUnpin for CatchUpSubscription
impl UnwindSafe for CatchUpSubscription
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more