pub struct SessionMemoryState { /* private fields */ }Expand description
Session memory state
Implementations§
Source§impl SessionMemoryState
impl SessionMemoryState
pub fn new() -> Self
pub fn is_initialized(&self) -> bool
pub fn mark_initialized(&self)
pub fn get_config(&self) -> SessionMemoryConfig
pub fn set_config(&self, config: SessionMemoryConfig)
pub fn get_tokens_at_last_extraction(&self) -> u64
pub fn set_tokens_at_last_extraction(&self, tokens: u64)
pub fn get_last_summarized_index(&self) -> Option<usize>
pub fn set_last_summarized_index(&self, index: Option<usize>)
pub fn is_extraction_in_progress(&self) -> bool
pub fn start_extraction(&self)
pub fn end_extraction(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SessionMemoryState
impl RefUnwindSafe for SessionMemoryState
impl Send for SessionMemoryState
impl Sync for SessionMemoryState
impl Unpin for SessionMemoryState
impl UnsafeUnpin for SessionMemoryState
impl UnwindSafe for SessionMemoryState
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