RethRpcMiddleware

Trait RethRpcMiddleware 

Source
pub trait RethRpcMiddleware:
    Layer<RpcService>
    + Clone
    + Send
    + 'static
where Self::Service: RpcServiceT<MethodResponse = MethodResponse, BatchResponse = MethodResponse, NotificationResponse = MethodResponse> + Send + Sync + Clone + 'static,
{ }
Available on crate feature rpc only.
Expand description

A Helper alias trait for the RPC middleware supported by the server.

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.

Implementors§

Source§

impl<T> RethRpcMiddleware for T
where T: Layer<RpcService> + Clone + Send + 'static, <T as Layer<RpcService>>::Service: RpcServiceT<MethodResponse = MethodResponse, BatchResponse = MethodResponse, NotificationResponse = MethodResponse> + Send + Sync + Clone + 'static,