#[non_exhaustive]pub enum CompactOutcome {
Declined,
NothingToCompact,
Failed,
Cancelled,
}Expand description
Why a compaction left the history as it was (AgentEvent::CompactEnded).
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.
Declined
A PreCompact hook declined it.
NothingToCompact
Failed
The compactor or the summary failed.
Cancelled
The turn was interrupted while it ran.
Trait Implementations§
Source§impl Clone for CompactOutcome
impl Clone for CompactOutcome
impl Copy for CompactOutcome
Source§impl Debug for CompactOutcome
impl Debug for CompactOutcome
Source§impl<'de> Deserialize<'de> for CompactOutcome
impl<'de> Deserialize<'de> for CompactOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CompactOutcome
Source§impl JsonSchema for CompactOutcome
impl JsonSchema for CompactOutcome
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CompactOutcome
impl PartialEq for CompactOutcome
Source§impl Serialize for CompactOutcome
impl Serialize for CompactOutcome
impl StructuralPartialEq for CompactOutcome
Auto Trait Implementations§
impl Forget for CompactOutcome
impl Freeze for CompactOutcome
impl Move for CompactOutcome
impl RefUnwindSafe for CompactOutcome
impl Send for CompactOutcome
impl Sync for CompactOutcome
impl Unpin for CompactOutcome
impl UnsafeUnpin for CompactOutcome
impl UnwindSafe for CompactOutcome
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