CardanoDatabaseAggregatorRequest

Trait CardanoDatabaseAggregatorRequest 

Source
pub trait CardanoDatabaseAggregatorRequest: Send + Sync {
    // Required methods
    fn list_latest<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<CardanoDatabaseSnapshotListItem>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_by_epoch<'life0, 'async_trait>(
        &'life0 self,
        specifier: EpochSpecifier,
    ) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<CardanoDatabaseSnapshotListItem>>> + 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<CardanoDatabaseSnapshot>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn increment_cardano_database_complete_restoration_statistic<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn increment_cardano_database_partial_restoration_statistic<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn increment_immutables_snapshot_restored_statistic<'life0, 'async_trait>(
        &'life0 self,
        number_of_immutable_files_restored: u32,
    ) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn increment_ancillary_downloaded_statistic<'life0, 'async_trait>(
        &'life0 self,
    ) -> 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 v2 snapshots.

Required Methods§

Source

fn list_latest<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<CardanoDatabaseSnapshotListItem>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the list of the latest Cardano database v2 snapshots from the aggregator.

Source

fn list_by_epoch<'life0, 'async_trait>( &'life0 self, specifier: EpochSpecifier, ) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<CardanoDatabaseSnapshotListItem>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the list of the latest Cardano database v2 snapshots for an EpochSpecifier from the aggregator.

Source

fn get_by_hash<'life0, 'life1, 'async_trait>( &'life0 self, hash: &'life1 str, ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoDatabaseSnapshot>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the details of a Cardano database v2 snapshot for a given hash from the aggregator.

Source

fn increment_cardano_database_complete_restoration_statistic<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Notify the aggregator that a complete Cardano database v2 restoration has been performed.

Source

fn increment_cardano_database_partial_restoration_statistic<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Notify the aggregator that a partial Cardano database v2 restoration has been performed.

Source

fn increment_immutables_snapshot_restored_statistic<'life0, 'async_trait>( &'life0 self, number_of_immutable_files_restored: u32, ) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Notify the aggregator that a given number of immutable files has been downloaded.

Source

fn increment_ancillary_downloaded_statistic<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Notify the aggregator that a Cardano database v2 ancillary file has been downloaded.

Implementations on Foreign Types§

Source§

impl CardanoDatabaseAggregatorRequest for AggregatorHttpClient

Source§

fn list_latest<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<CardanoDatabaseSnapshotListItem>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn list_by_epoch<'life0, 'async_trait>( &'life0 self, specifier: EpochSpecifier, ) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<CardanoDatabaseSnapshotListItem>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_by_hash<'life0, 'life1, 'async_trait>( &'life0 self, hash: &'life1 str, ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoDatabaseSnapshot>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn increment_cardano_database_complete_restoration_statistic<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn increment_cardano_database_partial_restoration_statistic<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn increment_immutables_snapshot_restored_statistic<'life0, 'async_trait>( &'life0 self, number_of_immutable_files_restored: u32, ) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn increment_ancillary_downloaded_statistic<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§