Trait L1SyncStatusProvider

Source
pub trait L1SyncStatusProvider: NamedEntity {
    // Required method
    fn get_l1_status<'life0, 'life1, 'life2, 'async_trait>(
        db: &'life0 Database,
        rpc: &'life1 ExtendedBitcoinRpc,
        config: &'life2 BridgeConfig,
    ) -> Pin<Box<dyn Future<Output = Result<L1SyncStatus, BridgeError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Extension trait on named entities who synchronize to the L1 data, to retrieve their L1 sync status.

Required Methods§

Source

fn get_l1_status<'life0, 'life1, 'life2, 'async_trait>( db: &'life0 Database, rpc: &'life1 ExtendedBitcoinRpc, config: &'life2 BridgeConfig, ) -> Pin<Box<dyn Future<Output = Result<L1SyncStatus, BridgeError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§