Skip to main content

CommunicationService

Trait CommunicationService 

Source
pub trait CommunicationService: Sync + Send {
    // Required methods
    fn inject(&mut self, api_receiver: APIReceiver, event_sender: EventSender);
    fn start_service<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ServiceStartResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn inject(&mut self, api_receiver: APIReceiver, event_sender: EventSender)

Source

fn start_service<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ServiceStartResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Trait Implementations§

Source§

impl CommunicationService for Box<dyn CommunicationService>

Source§

fn inject(&mut self, api_receiver: APIReceiver, event_sender: EventSender)

Source§

fn start_service<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ServiceStartResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

Source§

impl CommunicationService for Box<dyn CommunicationService>

Source§

fn inject(&mut self, api_receiver: APIReceiver, event_sender: EventSender)

Source§

fn start_service<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ServiceStartResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§