pub enum AgentMemoryError {
Validation(ValidationError),
Config(ConfigError),
Store(StoreError),
Lock(LockError),
NotFound(NotFoundError),
Io {
source: Error,
},
Overflow {
context: &'static str,
},
Internal {
message: &'static str,
},
}Variants§
Validation(ValidationError)
A caller supplied invalid input.
Config(ConfigError)
The on-disk configuration was invalid or incomplete.
Store(StoreError)
A storage operation failed.
Lock(LockError)
A lock operation failed.
NotFound(NotFoundError)
A requested item does not exist.
Io
An unexpected I/O error occurred outside a more specific storage context.
Overflow
A size or capacity calculation would overflow or exceed a defined limit.
Internal
An internal invariant was violated.
It is intended for situations where the crate detects
Implementations§
Trait Implementations§
Source§impl Debug for AgentMemoryError
impl Debug for AgentMemoryError
Source§impl Display for AgentMemoryError
impl Display for AgentMemoryError
Source§impl Error for AgentMemoryError
impl Error for AgentMemoryError
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()
Source§impl From<ConfigError> for AgentMemoryError
impl From<ConfigError> for AgentMemoryError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for AgentMemoryError
impl From<Error> for AgentMemoryError
Source§impl From<LockError> for AgentMemoryError
impl From<LockError> for AgentMemoryError
Source§impl From<NotFoundError> for AgentMemoryError
impl From<NotFoundError> for AgentMemoryError
Source§fn from(source: NotFoundError) -> Self
fn from(source: NotFoundError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for AgentMemoryError
impl From<StoreError> for AgentMemoryError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for AgentMemoryError
impl From<ValidationError> for AgentMemoryError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentMemoryError
impl !RefUnwindSafe for AgentMemoryError
impl Send for AgentMemoryError
impl Sync for AgentMemoryError
impl Unpin for AgentMemoryError
impl UnsafeUnpin for AgentMemoryError
impl !UnwindSafe for AgentMemoryError
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