pub enum ContextError {
Serialization(Error),
KeyNotFound(String),
TypeMismatch(String),
KeyExists(String),
}Expand description
Errors that can occur during context operations.
This minimal version only includes errors that can occur without database or runtime dependencies.
Variants§
Serialization(Error)
JSON serialization/deserialization error
KeyNotFound(String)
Key not found in context
TypeMismatch(String)
Type mismatch when retrieving a value
KeyExists(String)
Key already exists when inserting
Trait Implementations§
Source§impl Debug for ContextError
impl Debug for ContextError
Source§impl Display for ContextError
impl Display for ContextError
Source§impl Error for ContextError
impl Error for ContextError
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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ContextError> for TaskError
impl From<ContextError> for TaskError
Source§fn from(error: ContextError) -> Self
fn from(error: ContextError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContextError
impl !RefUnwindSafe for ContextError
impl Send for ContextError
impl Sync for ContextError
impl Unpin for ContextError
impl !UnwindSafe for ContextError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more