pub struct TargetExtractMiddleware;Trait Implementations§
Source§impl RequestMiddleware for TargetExtractMiddleware
impl RequestMiddleware for TargetExtractMiddleware
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Stable identifier used for
info! registration logs and test
introspection. Return a &'static str literal.Source§fn on_request<'life0, 'life1, 'async_trait>(
&'life0 self,
req: Request,
cx: &'life1 mut Context,
) -> Pin<Box<dyn Future<Output = Flow> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_request<'life0, 'life1, 'async_trait>(
&'life0 self,
req: Request,
cx: &'life1 mut Context,
) -> Pin<Box<dyn Future<Output = Flow> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Inspect or transform the request. Variants the middleware does
not care about return
Flow::Continue(req) unchanged.Auto Trait Implementations§
impl Freeze for TargetExtractMiddleware
impl RefUnwindSafe for TargetExtractMiddleware
impl Send for TargetExtractMiddleware
impl Sync for TargetExtractMiddleware
impl Unpin for TargetExtractMiddleware
impl UnsafeUnpin for TargetExtractMiddleware
impl UnwindSafe for TargetExtractMiddleware
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