Struct sc_rpc_server::RpcMiddleware [−][src]
pub struct RpcMiddleware { /* fields omitted */ }
Expand description
Middleware for RPC calls
Implementations
Create an instance of middleware.
metrics
: Will be used to report statistics.transport_label
: The label that is used when reporting the statistics.
Trait Implementations
type Future = FutureResponse
type Future = FutureResponse
A returned request future.
type CallFuture = FutureOutput
type CallFuture = FutureOutput
A returned call future.
Method invoked on each request. Allows you to either respond directly (without executing RPC call) or do any additional work before and/or after processing the request. Read more
Auto Trait Implementations
impl !RefUnwindSafe for RpcMiddleware
impl Send for RpcMiddleware
impl Sync for RpcMiddleware
impl Unpin for RpcMiddleware
impl !UnwindSafe for RpcMiddleware
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more