Struct sc_rpc_server::middleware::Middleware
source · pub struct Middleware<S> { /* private fields */ }
Expand description
JSON-RPC middleware that handles metrics and rate-limiting.
These are part of the same middleware because the metrics needs to know whether a call was rate-limited or not because it will impact the roundtrip for a call.
Trait Implementations§
source§impl<'a, S> RpcServiceT<'a> for Middleware<S>
impl<'a, S> RpcServiceT<'a> for Middleware<S>
Auto Trait Implementations§
impl<S> Freeze for Middleware<S>where
S: Freeze,
impl<S> !RefUnwindSafe for Middleware<S>
impl<S> Send for Middleware<S>where
S: Send,
impl<S> Sync for Middleware<S>where
S: Sync,
impl<S> Unpin for Middleware<S>where
S: Unpin,
impl<S> !UnwindSafe for Middleware<S>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more