pub trait MessageService: Sync + Send {
    // Required methods
    fn get_certificate_message<'life0, 'life1, 'async_trait>(
        &'life0 self,
        certificate_hash: &'life1 str
    ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificateMessage>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_certificate_list_message<'life0, 'async_trait>(
        &'life0 self,
        limit: usize
    ) -> Pin<Box<dyn Future<Output = StdResult<CertificateListMessage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_snapshot_message<'life0, 'life1, 'async_trait>(
        &'life0 self,
        signed_entity_id: &'life1 str
    ) -> Pin<Box<dyn Future<Output = StdResult<Option<SnapshotMessage>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_snapshot_list_message<'life0, 'async_trait>(
        &'life0 self,
        limit: usize
    ) -> Pin<Box<dyn Future<Output = StdResult<SnapshotListMessage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_mithril_stake_distribution_message<'life0, 'life1, 'async_trait>(
        &'life0 self,
        signed_entity_id: &'life1 str
    ) -> Pin<Box<dyn Future<Output = StdResult<Option<MithrilStakeDistributionMessage>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_mithril_stake_distribution_list_message<'life0, 'async_trait>(
        &'life0 self,
        limit: usize
    ) -> Pin<Box<dyn Future<Output = StdResult<MithrilStakeDistributionListMessage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_cardano_transaction_message<'life0, 'life1, 'async_trait>(
        &'life0 self,
        signed_entity_id: &'life1 str
    ) -> Pin<Box<dyn Future<Output = StdResult<Option<CardanoTransactionSnapshotMessage>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_cardano_transaction_list_message<'life0, 'async_trait>(
        &'life0 self,
        limit: usize
    ) -> Pin<Box<dyn Future<Output = StdResult<CardanoTransactionSnapshotListMessage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

HTTP Message service trait.

Required Methods§

source

fn get_certificate_message<'life0, 'life1, 'async_trait>( &'life0 self, certificate_hash: &'life1 str ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificateMessage>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Return the message representation of a certificate if it exists.

source

fn get_certificate_list_message<'life0, 'async_trait>( &'life0 self, limit: usize ) -> Pin<Box<dyn Future<Output = StdResult<CertificateListMessage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Return the message representation of the last N certificates

source

fn get_snapshot_message<'life0, 'life1, 'async_trait>( &'life0 self, signed_entity_id: &'life1 str ) -> Pin<Box<dyn Future<Output = StdResult<Option<SnapshotMessage>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Return the information regarding the given snapshot

source

fn get_snapshot_list_message<'life0, 'async_trait>( &'life0 self, limit: usize ) -> Pin<Box<dyn Future<Output = StdResult<SnapshotListMessage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Return the list of the last signed snapshots. The limit of the list is passed as argument.

source

fn get_mithril_stake_distribution_message<'life0, 'life1, 'async_trait>( &'life0 self, signed_entity_id: &'life1 str ) -> Pin<Box<dyn Future<Output = StdResult<Option<MithrilStakeDistributionMessage>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Return the information regarding the MSD for the given identifier.

source

fn get_mithril_stake_distribution_list_message<'life0, 'async_trait>( &'life0 self, limit: usize ) -> Pin<Box<dyn Future<Output = StdResult<MithrilStakeDistributionListMessage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Return the list of the last Mithril stake distributions message

source

fn get_cardano_transaction_message<'life0, 'life1, 'async_trait>( &'life0 self, signed_entity_id: &'life1 str ) -> Pin<Box<dyn Future<Output = StdResult<Option<CardanoTransactionSnapshotMessage>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Return the information regarding the Cardano transactions set for the given identifier.

source

fn get_cardano_transaction_list_message<'life0, 'async_trait>( &'life0 self, limit: usize ) -> Pin<Box<dyn Future<Output = StdResult<CardanoTransactionSnapshotListMessage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Return the list of the last Cardano transactions set message

Implementors§