#[non_exhaustive]pub enum CompactionOutcome {
Applied(CompactResult),
NothingToCompact,
Failed(AgentError),
Discarded,
}Expand description
How a compaction announced by AgentEvent::CompactionStarted ended.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Applied(CompactResult)
The handoff replaced the conversation below its fork point.
NothingToCompact
There was no conversation to compact; the window is as it was.
Failed(AgentError)
The compaction failed; the window is as it was.
Discarded
The handoff was dropped unapplied: the window it was forked from was
replaced first, by an explicit compaction,
clear_history,
restore_checkpoint, or by
dropping the run that carried it.
Trait Implementations§
Source§impl Clone for CompactionOutcome
impl Clone for CompactionOutcome
Auto Trait Implementations§
impl !RefUnwindSafe for CompactionOutcome
impl !UnwindSafe for CompactionOutcome
impl Forget for CompactionOutcome
impl Freeze for CompactionOutcome
impl Move for CompactionOutcome
impl Send for CompactionOutcome
impl Sync for CompactionOutcome
impl Unpin for CompactionOutcome
impl UnsafeUnpin for CompactionOutcome
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