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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.