pub enum MemoryError {
NotImplemented(&'static str),
NotFound(String),
InvalidArgument(String),
Storage(String),
Provider(String),
Internal(String),
}Expand description
Errors produced by the memory subsystem.
Variants§
NotImplemented(&'static str)
The requested feature isn’t implemented by the current provider.
v1’s BasicMemoryProvider returns this for summarization, rollups,
and re-embed methods. The full Memory & Context Manager replaces the
provider and implements all of these.
NotFound(String)
The requested chunk, session, or other entity could not be found.
InvalidArgument(String)
A caller passed an invalid argument (out-of-range importance, empty query, malformed predicate, etc.).
Storage(String)
A storage-layer error (SQLite, filesystem, embedding model load).
Provider(String)
A network or external-provider error (cloud embedder, cloud summarizer).
Internal(String)
An unexpected internal invariant was violated. Bug.
Trait Implementations§
Source§impl Debug for MemoryError
impl Debug for MemoryError
Source§impl Display for MemoryError
impl Display for MemoryError
Source§impl Error for MemoryError
impl Error for MemoryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for MemoryError
impl RefUnwindSafe for MemoryError
impl Send for MemoryError
impl Sync for MemoryError
impl Unpin for MemoryError
impl UnsafeUnpin for MemoryError
impl UnwindSafe for MemoryError
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