Skip to main content

ClientLoader

Trait ClientLoader 

Source
pub trait ClientLoader: Send + Sync {
    // Required methods
    fn load_clients<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn find(&self, name: &str) -> Option<Box<dyn Client>>;
    fn run<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Receiver<Message>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn load_clients<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn find(&self, name: &str) -> Option<Box<dyn Client>>

Source

fn run<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Receiver<Message>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§