pub struct InMemoryLoopSessionStore { /* private fields */ }Expand description
Process-local store.
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryLoopSessionStore
impl Clone for InMemoryLoopSessionStore
Source§fn clone(&self) -> InMemoryLoopSessionStore
fn clone(&self) -> InMemoryLoopSessionStore
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 InMemoryLoopSessionStore
impl Default for InMemoryLoopSessionStore
Source§fn default() -> InMemoryLoopSessionStore
fn default() -> InMemoryLoopSessionStore
Returns the “default value” for a type. Read more
Source§impl LoopSessionStore for InMemoryLoopSessionStore
impl LoopSessionStore for InMemoryLoopSessionStore
Source§async fn get_session(&self, session_id: &str) -> Option<LoopSessionEntry>
async fn get_session(&self, session_id: &str) -> Option<LoopSessionEntry>
Load session.
Source§async fn create_session(&self, record: LoopSessionEntry) -> LoopSessionEntry
async fn create_session(&self, record: LoopSessionEntry) -> LoopSessionEntry
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 InMemoryLoopSessionStore
impl !UnwindSafe for InMemoryLoopSessionStore
impl Freeze for InMemoryLoopSessionStore
impl Send for InMemoryLoopSessionStore
impl Sync for InMemoryLoopSessionStore
impl Unpin for InMemoryLoopSessionStore
impl UnsafeUnpin for InMemoryLoopSessionStore
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