pub struct CompactionError { /* private fields */ }Expand description
A compaction failure rather than a failure of the turn itself.
Compaction is bookkeeping: the turn’s events are already persisted before it runs, so a
failure costs a smaller prompt later, not the user’s answer. It still surfaces; a caller that
would rather log it than fail the turn can tell the two apart with
AgentError::is_compaction (gadk-agent).
Implementations§
Source§impl CompactionError
impl CompactionError
Sourcepub fn new(detail: impl Into<String>) -> Self
pub fn new(detail: impl Into<String>) -> Self
Display context compaction failed: <detail>, no source.
Trait Implementations§
Source§impl Debug for CompactionError
impl Debug for CompactionError
Source§impl Display for CompactionError
impl Display for CompactionError
Source§impl Error for CompactionError
impl Error for CompactionError
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 !RefUnwindSafe for CompactionError
impl !UnwindSafe for CompactionError
impl Forget for CompactionError
impl Freeze for CompactionError
impl Move for CompactionError
impl Send for CompactionError
impl Sync for CompactionError
impl Unpin for CompactionError
impl UnsafeUnpin for CompactionError
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