pub trait EventLogTrimableTracker {
// Required methods
fn store<'life0, 'life1, 'async_trait>(
&'life0 mut self,
dbtx: &'life1 mut DatabaseTransaction<'_, NonCommittable>,
pos: EventLogTrimableId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load<'life0, 'life1, 'async_trait>(
&'life0 mut self,
dbtx: &'life1 mut DatabaseTransaction<'_, NonCommittable>,
) -> Pin<Box<dyn Future<Output = Result<Option<EventLogTrimableId>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Like EventLogNonTrimableTracker but for trimable event log
Required Methods§
fn store<'life0, 'life1, 'async_trait>(
&'life0 mut self,
dbtx: &'life1 mut DatabaseTransaction<'_, NonCommittable>,
pos: EventLogTrimableId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sourcefn load<'life0, 'life1, 'async_trait>(
&'life0 mut self,
dbtx: &'life1 mut DatabaseTransaction<'_, NonCommittable>,
) -> Pin<Box<dyn Future<Output = Result<Option<EventLogTrimableId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 mut self,
dbtx: &'life1 mut DatabaseTransaction<'_, NonCommittable>,
) -> Pin<Box<dyn Future<Output = Result<Option<EventLogTrimableId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load the last previous stored position (or None if never stored)