Struct salvo_session::SessionHandler
source · pub struct SessionHandler<S> { /* private fields */ }
Expand description
SessionHandler
Implementations§
source§impl<S> SessionHandler<S>where
S: SessionStore,
impl<S> SessionHandler<S>where
S: SessionStore,
sourcepub fn builder(store: S, secret: &[u8]) -> HandlerBuilder<S>
pub fn builder(store: S, secret: &[u8]) -> HandlerBuilder<S>
Create new HandlerBuilder
Trait Implementations§
source§impl<S: SessionStore> Debug for SessionHandler<S>
impl<S: SessionStore> Debug for SessionHandler<S>
source§impl<S> Handler for SessionHandler<S>where
S: SessionStore,
impl<S> Handler for SessionHandler<S>where
S: SessionStore,
source§fn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Handle http request.