pub trait CustomApiDispatcher<B: Backend>: Dispatcher<<B::CustomApi as CustomApi>::Request, Result = Result<<B::CustomApi as CustomApi>::Response, BackendError<<B::CustomApi as CustomApi>::Error>>> + Debug {
    fn new(server: &CustomServer<B>, client: &ConnectedClient<B>) -> Self;
}
Expand description

A trait that can dispatch requests for a CustomApi.

Required methods

Returns a dispatcher to handle custom api requests. The server and client parameters are provided to allow the dispatcher to have access to them when handling the individual actions.

Implementors