Trait ErasedRpcHandler

Source
pub(crate) trait ErasedRpcHandler: Send + Sync {
    // Required method
    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 self,
        serialized_request: &'life1 RpcRequestPayload,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn ErasedSerialize>, RpcError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn handle<'life0, 'life1, 'async_trait>( &'life0 self, serialized_request: &'life1 RpcRequestPayload, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn ErasedSerialize>, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

Source§

impl<H> ErasedRpcHandler for H
where H: RpcHandler + Send + Sync,