Trait jsonrpc_core::IoHandlerExtension
source · [−]pub trait IoHandlerExtension<M: Metadata = ()> {
fn augment<S: Middleware<M>>(self, handler: &mut MetaIoHandler<M, S>);
}
Expand description
A type that can augment MetaIoHandler
.
This allows your code to accept generic extensions for IoHandler
and compose them to create the RPC server.
Required methods
fn augment<S: Middleware<M>>(self, handler: &mut MetaIoHandler<M, S>)
fn augment<S: Middleware<M>>(self, handler: &mut MetaIoHandler<M, S>)
Extend given handler
with additional methods.