fedimint_server::consensus::db

Trait MigrationContextExt

Source
pub trait MigrationContextExt {
    // Required methods
    fn get_module_history_stream<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = BoxStream<'_, ModuleHistoryItem>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_typed_module_history_stream<'life0, 'async_trait, M>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = BoxStream<'_, TypedModuleHistoryItem<M>>> + Send + 'async_trait>>
       where M: 'async_trait + ModuleCommon,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_module_history_stream<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = BoxStream<'_, ModuleHistoryItem>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_typed_module_history_stream<'life0, 'async_trait, M>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = BoxStream<'_, TypedModuleHistoryItem<M>>> + Send + 'async_trait>>
where M: 'async_trait + ModuleCommon, Self: 'async_trait, 'life0: '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.

Implementations on Foreign Types§

Source§

impl MigrationContextExt for MigrationContext<'_>

Source§

fn get_module_history_stream<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = BoxStream<'_, ModuleHistoryItem>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_typed_module_history_stream<'life0, 'async_trait, M>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = BoxStream<'_, TypedModuleHistoryItem<M>>> + Send + 'async_trait>>
where M: 'async_trait + ModuleCommon, Self: 'async_trait, 'life0: 'async_trait,

Implementors§