pub struct TurnSnapshot {
pub turn_id: TurnId,
pub blocks: OrderedBlocks,
pub source_version: ContextVersion,
pub sealed: bool,
}Expand description
Immutable, serializable projection of a turn — the canonical wire shape
for a persisted turn (a live TurnContext is never serialized directly).
The snapshot describes the record itself only: identity, blocks, fact
version, and write lifecycle. Session ordering lives in the runtime’s
HistoryEntry, not here.
Fields§
§turn_id: TurnIdIdentity of the snapshotted turn.
blocks: OrderedBlocksThe committed blocks, in commit order.
source_version: ContextVersionThe turn’s ContextVersion at snapshot time.
sealed: boolWhether the turn was sealed when snapshotted. A paused turn
snapshots as false so a persisted conversation reloads with the
active turn still open and resumable. Serde-additive: an absent field
defaults to true (only sealed turns have a wire snapshot).
Trait Implementations§
Source§impl Clone for TurnSnapshot
impl Clone for TurnSnapshot
Source§fn clone(&self) -> TurnSnapshot
fn clone(&self) -> TurnSnapshot
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 TurnSnapshot
impl Debug for TurnSnapshot
Source§impl<'de> Deserialize<'de> for TurnSnapshot
impl<'de> Deserialize<'de> for TurnSnapshot
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 TurnSnapshot
impl RefUnwindSafe for TurnSnapshot
impl Send for TurnSnapshot
impl Sync for TurnSnapshot
impl Unpin for TurnSnapshot
impl UnsafeUnpin for TurnSnapshot
impl UnwindSafe for TurnSnapshot
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