pub struct SessionMiddleware;
Trait Implementations§
Source§impl Middleware for SessionMiddleware
impl Middleware for SessionMiddleware
fn pre_process<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
req: &'life1 mut HttpRequest,
ctx: &'life2 mut Context,
) -> Pin<Box<dyn Future<Output = Result<Option<HttpResonse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn post_process<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_req: &'life1 mut HttpRequest,
res: &'life2 mut HttpResonse,
ctx: &'life3 mut Context,
) -> Pin<Box<dyn Future<Output = Result<Option<HttpResonse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Auto Trait Implementations§
impl Freeze for SessionMiddleware
impl RefUnwindSafe for SessionMiddleware
impl Send for SessionMiddleware
impl Sync for SessionMiddleware
impl Unpin for SessionMiddleware
impl UnwindSafe for SessionMiddleware
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