pub struct MemoryContextImpl {
pub session: SessionContextImpl,
pub window: Vec<Message>,
}Expand description
Memory context implementation with active window management.
Fields§
§session: SessionContextImplThe underlying session context.
window: Vec<Message>Short-term active window messages.
Trait Implementations§
Source§impl MemoryContext for MemoryContextImpl
impl MemoryContext for MemoryContextImpl
Source§impl ReadonlyContext for MemoryContextImpl
impl ReadonlyContext for MemoryContextImpl
Source§impl SessionContext for MemoryContextImpl
impl SessionContext for MemoryContextImpl
Source§fn session_state(&self) -> &SessionState
fn session_state(&self) -> &SessionState
Returns the current session state (key-value store scoped to the session).
Source§fn session_state_mut(&mut self) -> &mut SessionState
fn session_state_mut(&mut self) -> &mut SessionState
Returns mutable access to session state.
Auto Trait Implementations§
impl Freeze for MemoryContextImpl
impl RefUnwindSafe for MemoryContextImpl
impl Send for MemoryContextImpl
impl Sync for MemoryContextImpl
impl Unpin for MemoryContextImpl
impl UnsafeUnpin for MemoryContextImpl
impl UnwindSafe for MemoryContextImpl
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