Trait darkfi::net::protocol::protocol_base::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§