RpcServer

Trait RpcServer 

Source
pub trait RpcServer:
    Sync
    + Send
    + 'static {
    // Provided methods
    fn handle_notification<'life0, 'async_trait>(
        &'life0 self,
        _method: String,
        _params: Value,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn handle_request<'life0, 'async_trait>(
        &'life0 self,
        _method: String,
        _params: Value,
    ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Provided Methods§

Source

fn handle_notification<'life0, 'async_trait>( &'life0 self, _method: String, _params: Value, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn handle_request<'life0, 'async_trait>( &'life0 self, _method: String, _params: Value, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

Source§

impl RpcServer for ()

Implementors§