pub trait SnapshotAggregatorRequest: Send + Sync {
// Required methods
fn list_latest<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<SnapshotListItem>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_by_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str,
) -> Pin<Box<dyn Future<Output = MithrilResult<Option<Snapshot>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn increment_snapshot_downloaded_statistic<'life0, 'async_trait>(
&'life0 self,
snapshot: Snapshot,
) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Define the requests against an aggregator related to Cardano database v1 snapshots.
Required Methods§
Sourcefn list_latest<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<SnapshotListItem>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_latest<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<SnapshotListItem>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the list of the latest Cardano database v1 snapshots from the aggregator.
Sourcefn get_by_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str,
) -> Pin<Box<dyn Future<Output = MithrilResult<Option<Snapshot>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_by_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str,
) -> Pin<Box<dyn Future<Output = MithrilResult<Option<Snapshot>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get the details of a Cardano database v1 snapshot for a given hash from the aggregator.
Sourcefn increment_snapshot_downloaded_statistic<'life0, 'async_trait>(
&'life0 self,
snapshot: Snapshot,
) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn increment_snapshot_downloaded_statistic<'life0, 'async_trait>(
&'life0 self,
snapshot: Snapshot,
) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Notify the aggregator that a Cardano database v1 snapshot has been downloaded.