[−][src]Struct carapax_session::SessionHandler
A session handler for carapax
This handler sets Session to context, so you can use it in your handlers:
use carapax::prelude::*; use carapax_session::{store::redis::RedisSessionStore, Session}; fn handler(context: &mut Context, message: &Message) -> HandlerFuture { let session = context.get::<Session<RedisSessionStore>>(); // do something with session... HandlerResult::Continue.into() }
Methods
impl<S> SessionHandler<S> where
S: SessionStore,
[src]
S: SessionStore,
Trait Implementations
impl<S> Handler for SessionHandler<S> where
S: SessionStore + Send + Sync + 'static,
[src]
S: SessionStore + Send + Sync + 'static,
Auto Trait Implementations
impl<S> Send for SessionHandler<S> where
S: Send + Sync,
S: Send + Sync,
impl<S> Sync for SessionHandler<S> where
S: Send + Sync,
S: Send + Sync,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,