Trait jsonrpc_core::IoHandlerExtension
source · pub trait IoHandlerExtension<M: Metadata = ()> {
// Required method
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§
sourcefn 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.
Object Safety§
This trait is not object safe.