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