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 = FutureResponseA returned request future.
type CallFuture = FutureOutput
type CallFuture = FutureOutputA 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 RpcMiddlewareimpl Send for RpcMiddlewareimpl Sync for RpcMiddlewareimpl Unpin for RpcMiddlewareimpl !UnwindSafe for RpcMiddlewareBlanket 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 = TShould always be Self
pub fn vzip(self) -> VAttaches 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