ProtocolBase

Trait ProtocolBase 

Source
pub trait ProtocolBase {
    // Required methods
    fn start<'life0, 'async_trait>(
        self: Arc<Self>,
        executor: Arc<Executor<'life0>>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn name(&self) -> &'static str;
}

Required Methods§

Source

fn start<'life0, 'async_trait>( self: Arc<Self>, executor: Arc<Executor<'life0>>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn name(&self) -> &'static str

Implementors§