Trait ElementArchiveIndex
Source pub trait ElementArchiveIndex: Send + Sync {
// Required methods
fn get_element_as_at<'life0, 'life1, 'async_trait>(
&'life0 self,
element_ref: &'life1 ElementReference,
time: ElementTimestamp,
) -> Pin<Box<dyn Future<Output = Result<Option<Arc<Element>>, IndexError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_element_versions<'life0, 'life1, 'async_trait>(
&'life0 self,
element_ref: &'life1 ElementReference,
range: TimestampRange<ElementTimestamp>,
) -> Pin<Box<dyn Future<Output = Result<ElementStream, IndexError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn clear<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), IndexError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}