pub struct ContextManager { /* private fields */ }
Expand description
Context manager for handling multiple conversation contexts
Implementations§
Source§impl ContextManager
impl ContextManager
Sourcepub async fn new(config: ContextConfig) -> Result<Self>
pub async fn new(config: ContextConfig) -> Result<Self>
Sourcepub async fn clear_expired(&self) -> Result<usize>
pub async fn clear_expired(&self) -> Result<usize>
Sourcepub fn stats(&self) -> ContextStats
pub fn stats(&self) -> ContextStats
Get statistics about managed contexts
Auto Trait Implementations§
impl Freeze for ContextManager
impl !RefUnwindSafe for ContextManager
impl Send for ContextManager
impl Sync for ContextManager
impl Unpin for ContextManager
impl !UnwindSafe for ContextManager
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