pub enum MemoryStatus {
NotUsed,
Reused,
Saved,
SaveFailed(String),
}Expand description
How a run used the session’s long-term memory sidecar when it had to trim.
Variants§
NotUsed
Memory was not involved: no summary attempted, or the attempt failed (nothing is ever stored then).
Reused
A stored summary covering the dropped turns was reused: no provider request.
Saved
A fresh summary was generated and written to the sidecar.
SaveFailed(String)
A fresh summary was generated and used, but writing the sidecar failed (the run is unaffected); carries the reason.
Trait Implementations§
Source§impl Clone for MemoryStatus
impl Clone for MemoryStatus
Source§impl Debug for MemoryStatus
impl Debug for MemoryStatus
impl Eq for MemoryStatus
Source§impl PartialEq for MemoryStatus
impl PartialEq for MemoryStatus
impl StructuralPartialEq for MemoryStatus
Auto Trait Implementations§
impl Forget for MemoryStatus
impl Freeze for MemoryStatus
impl Move for MemoryStatus
impl RefUnwindSafe for MemoryStatus
impl Send for MemoryStatuswhere
RawVecInner: Send,
impl Sync for MemoryStatuswhere
RawVecInner: Sync,
impl Unpin for MemoryStatus
impl UnsafeUnpin for MemoryStatus
impl UnwindSafe for MemoryStatuswhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.