pub struct NoopMiddleware;
Expand description
No-op middleware implementation
Trait Implementations§
Source§impl<M: Metadata> Middleware<M> for Noop
impl<M: Metadata> Middleware<M> for Noop
Source§fn on_request<F, X>(
&self,
request: Request,
meta: M,
process: F,
) -> Self::Future
fn on_request<F, X>( &self, request: Request, meta: M, process: F, ) -> Self::Future
Msod 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.
Auto Trait Implementations§
impl Freeze for Noop
impl RefUnwindSafe for Noop
impl Send for Noop
impl Sync for Noop
impl Unpin for Noop
impl UnwindSafe for Noop
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