pub struct SessionTouchMiddleware;Trait Implementations§
Source§impl RequestMiddleware for SessionTouchMiddleware
impl RequestMiddleware for SessionTouchMiddleware
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 SessionTouchMiddleware
impl RefUnwindSafe for SessionTouchMiddleware
impl Send for SessionTouchMiddleware
impl Sync for SessionTouchMiddleware
impl Unpin for SessionTouchMiddleware
impl UnsafeUnpin for SessionTouchMiddleware
impl UnwindSafe for SessionTouchMiddleware
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