pub enum FoldError {
EntryNotFound(Uuid),
InvalidEntryType {
expected: String,
actual: String,
},
Context(String),
Serialization(Error),
Storage(String),
LockPoisoned(String),
InvalidInput(String),
BudgetExhausted {
needed: usize,
budget: usize,
},
AnchorNotFound(String),
ComponentMissing(String),
}Expand description
Errors that can occur in fold operations
Variants§
EntryNotFound(Uuid)
Entry not found
InvalidEntryType
Invalid entry type for this fold
Fields
Context(String)
Fold context error
Serialization(Error)
Serialization error
Storage(String)
Storage error
LockPoisoned(String)
Internal lock poisoned (concurrent panic)
InvalidInput(String)
Invalid input to a cognitive primitive (Anchor, Selector).
BudgetExhausted
Budget exhausted during selection.
AnchorNotFound(String)
Anchor not found during graph traversal.
ComponentMissing(String)
Required component not configured.
Trait Implementations§
Source§impl Error for FoldError
impl Error for FoldError
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 FoldError
impl !RefUnwindSafe for FoldError
impl Send for FoldError
impl Sync for FoldError
impl Unpin for FoldError
impl UnsafeUnpin for FoldError
impl !UnwindSafe for FoldError
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