Struct solana_jsonrpc_core::NoopMiddleware [−][src]
pub struct NoopMiddleware;
No-op middleware implementation
Trait Implementations
impl Debug for Noop
[src]
impl Debug for Noop
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Noop
[src]
impl Default for Noop
impl<M: Metadata> Middleware<M> for Noop
[src]
impl<M: Metadata> Middleware<M> for Noop
type Future = Box<Future<Item = Option<Response>, Error = ()> + Send>
A returned future.
fn on_request<F, X>(
&self,
request: Request,
meta: M,
process: F
) -> Either<Self::Future, X> where
F: FnOnce(Request, M) -> X + Send,
X: Future<Item = Option<Response>, Error = ()> + Send + 'static,
[src]
fn on_request<F, X>(
&self,
request: Request,
meta: M,
process: F
) -> Either<Self::Future, X> where
F: FnOnce(Request, M) -> X + Send,
X: Future<Item = Option<Response>, Error = ()> + Send + 'static,
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 Send for NoopMiddleware
impl Send for NoopMiddleware
impl Sync for NoopMiddleware
impl Sync for NoopMiddleware