pub struct InMemorySessionStore { /* private fields */ }Expand description
Process-local store.
Implementations§
Trait Implementations§
Source§impl Clone for InMemorySessionStore
impl Clone for InMemorySessionStore
Source§fn clone(&self) -> InMemorySessionStore
fn clone(&self) -> InMemorySessionStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for InMemorySessionStore
impl Default for InMemorySessionStore
Source§fn default() -> InMemorySessionStore
fn default() -> InMemorySessionStore
Returns the “default value” for a type. Read more
Source§impl SessionStore for InMemorySessionStore
impl SessionStore for InMemorySessionStore
Source§async fn get_session(&self, session_id: &str) -> Option<SessionRecord>
async fn get_session(&self, session_id: &str) -> Option<SessionRecord>
Load session.
Source§async fn create_session(&self, record: SessionRecord) -> SessionRecord
async fn create_session(&self, record: SessionRecord) -> SessionRecord
Create session.
Source§async fn update_last_used(&self, _session_id: &str)
async fn update_last_used(&self, _session_id: &str)
Touch last-used (no-op ok).
Source§async fn increment_reset_count(&self, session_id: &str)
async fn increment_reset_count(&self, session_id: &str)
Increment reset count.
Source§async fn set_loop_id(&self, session_id: &str, loop_id: &str)
async fn set_loop_id(&self, session_id: &str, loop_id: &str)
Bind loop id.
Source§async fn append_message(&self, session_id: &str, message: Value)
async fn append_message(&self, session_id: &str, message: Value)
Append a message.
Auto Trait Implementations§
impl !RefUnwindSafe for InMemorySessionStore
impl !UnwindSafe for InMemorySessionStore
impl Freeze for InMemorySessionStore
impl Send for InMemorySessionStore
impl Sync for InMemorySessionStore
impl Unpin for InMemorySessionStore
impl UnsafeUnpin for InMemorySessionStore
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