pub enum TransactionObservation {
CheckpointTaken {
turn: u32,
history_len: u32,
},
Rollbacked {
turn: u32,
checkpoint_history_len: u32,
reason: Option<RollbackReason>,
},
}Expand description
Transaction-boundary observations emitted by the kernel.
A turn transaction lifecycle looks like:
CheckpointTaken (before LLM call) → … → Rollbacked (if fatal) or
implicit commit (clean ToolCompleted + turn increment).
Variants§
Trait Implementations§
Source§impl Clone for TransactionObservation
impl Clone for TransactionObservation
Source§fn clone(&self) -> TransactionObservation
fn clone(&self) -> TransactionObservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionObservation
impl Debug for TransactionObservation
Source§impl<'de> Deserialize<'de> for TransactionObservation
impl<'de> Deserialize<'de> for TransactionObservation
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
Auto Trait Implementations§
impl Freeze for TransactionObservation
impl RefUnwindSafe for TransactionObservation
impl Send for TransactionObservation
impl Sync for TransactionObservation
impl Unpin for TransactionObservation
impl UnsafeUnpin for TransactionObservation
impl UnwindSafe for TransactionObservation
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