[][src]Struct carapax_session::SessionManager

pub struct SessionManager<B> { /* fields omitted */ }

A session manager

Methods

impl<B> SessionManager<B> where
    B: SessionBackend
[src]

pub fn new(backend: B) -> Self[src]

Creates a new manager

Arguments

  • backend - A session store backend

pub fn get_session<I>(&self, input: I) -> Session<B> where
    I: Into<SessionId>, 
[src]

Returns a session for an update/message/command

pub fn get_session_by_id<I>(&self, id: I) -> Session<B> where
    I: AsRef<str>, 
[src]

Returns a session by ID

Trait Implementations

impl<B: Clone> Clone for SessionManager<B>[src]

Auto Trait Implementations

impl<B> !RefUnwindSafe for SessionManager<B>

impl<B> Send for SessionManager<B> where
    B: Send

impl<B> Sync for SessionManager<B> where
    B: Send

impl<B> Unpin for SessionManager<B>

impl<B> !UnwindSafe for SessionManager<B>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.