ServiceAcceptor

Trait ServiceAcceptor 

Source
pub trait ServiceAcceptor: Send {
    // Required method
    fn accept_connection<'life0, 'async_trait>(
        &'life0 mut self,
        ctrl_rx: CtrlRx,
    ) -> Pin<Box<dyn Future<Output = SourceResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn accept_connection<'life0, 'async_trait>( &'life0 mut self, ctrl_rx: CtrlRx, ) -> Pin<Box<dyn Future<Output = SourceResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

接受连接/启动服务端式源,处理外部控制事件

Implementors§