pub struct StateCheckpoint {
pub agent_id: AgentId,
pub agent_state: AgentState,
pub timestamp: SystemTime,
pub app_state: Value,
pub metadata: CheckpointMetadata,
}Expand description
Checkpoint containing critical agent state for recovery.
Fields§
§agent_id: AgentIdAgent identifier.
agent_state: AgentStateAgent lifecycle state at checkpoint time.
timestamp: SystemTimeTimestamp when checkpoint was created.
app_state: ValueCustom application state (opaque to recovery layer).
metadata: CheckpointMetadataMetadata about the checkpoint.
Trait Implementations§
Source§impl Clone for StateCheckpoint
impl Clone for StateCheckpoint
Source§fn clone(&self) -> StateCheckpoint
fn clone(&self) -> StateCheckpoint
Returns a duplicate of the value. Read more
1.0.0 · 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 StateCheckpoint
impl Debug for StateCheckpoint
Source§impl<'de> Deserialize<'de> for StateCheckpoint
impl<'de> Deserialize<'de> for StateCheckpoint
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 StateCheckpoint
impl RefUnwindSafe for StateCheckpoint
impl Send for StateCheckpoint
impl Sync for StateCheckpoint
impl Unpin for StateCheckpoint
impl UnwindSafe for StateCheckpoint
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