Trait sc_rpc_api::RpcExtension
source · [−]pub trait RpcExtension<M = ()> where
M: Metadata, {
fn augment<S>(self, handler: &mut MetaIoHandler<M, S>)
where
S: Middleware<M>;
}
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>(self, handler: &mut MetaIoHandler<M, S>) where
S: Middleware<M>,
fn augment<S>(self, handler: &mut MetaIoHandler<M, S>) where
S: Middleware<M>,
Extend given handler
with additional methods.