Trait TypesProviderRegistry

Source
pub trait TypesProviderRegistry<T: NamespacedTypeContainer>: Send + Sync {
    // Required methods
    fn register_provider<'life0, 'async_trait>(
        &'life0 self,
        provider: Arc<dyn TypeProvider<T>>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn unregister_provider<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn register_provider<'life0, 'async_trait>( &'life0 self, provider: Arc<dyn TypeProvider<T>>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a component provider.

Source

fn unregister_provider<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Unregisters a component provider.

Implementors§