pub trait RpcInterceptor:
Send
+ Sync
+ 'static {
// Required method
fn before_call(
&self,
method: &str,
params: &Option<Value>,
) -> Result<(), RpcError>;
}Expand description
Pluggable interceptor invoked before each JSON-RPC 2.0 method dispatch.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".