DynamicProtocol

Trait DynamicProtocol 

Source
pub trait DynamicProtocol: Send + Sync {
    // Required methods
    fn protocol_version(&self) -> &'static str;
    fn rpc<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        context: Context,
        data: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

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

Source

fn rpc<'life0, 'life1, 'async_trait>( &'life0 mut self, context: Context, data: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§