karyon_p2p::protocol

Trait InitProtocol

Source
pub(crate) trait InitProtocol: Send + Sync {
    type T;

    // Required method
    fn init<'async_trait>(
        self: Arc<Self>,
    ) -> Pin<Box<dyn Future<Output = Self::T> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Associated Types§

Source

type T

Required Methods§

Source

fn init<'async_trait>( self: Arc<Self>, ) -> Pin<Box<dyn Future<Output = Self::T> + Send + 'async_trait>>
where Self: 'async_trait,

Initialize the protocol

Implementors§