pub struct SessionSnapshotData {
pub session: SessionView,
pub run: RunState,
pub entries_from: Option<i64>,
pub total_entries: Option<i64>,
}Expand description
Wire snapshot of a session (TS SessionSnapshotData): the record with
entries, the run state, and the window markers.
entriesFrom/totalEntries are present only when the host sent a tail
window; their absence means full transcript, which is what an older
client that never asked for a window always received.
Fields§
§session: SessionView§run: RunState§entries_from: Option<i64>Absolute host index of session.entries[0] for a windowed frame.
total_entries: Option<i64>Full transcript length when entries_from is present.
Trait Implementations§
Source§impl Clone for SessionSnapshotData
impl Clone for SessionSnapshotData
Source§impl Debug for SessionSnapshotData
impl Debug for SessionSnapshotData
Source§impl<'de> Deserialize<'de> for SessionSnapshotData
impl<'de> Deserialize<'de> for SessionSnapshotData
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
Source§impl PartialEq for SessionSnapshotData
impl PartialEq for SessionSnapshotData
Source§impl Serialize for SessionSnapshotData
impl Serialize for SessionSnapshotData
impl StructuralPartialEq for SessionSnapshotData
Auto Trait Implementations§
impl Forget for SessionSnapshotData
impl Freeze for SessionSnapshotDatawhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ReasoningLabel>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<SessionEntry>: Freeze,
PhantomData<QueuedMessage>: Freeze,
impl Move for SessionSnapshotData
impl RefUnwindSafe for SessionSnapshotData
impl Send for SessionSnapshotData
impl Sync for SessionSnapshotData
impl Unpin for SessionSnapshotData
impl UnsafeUnpin for SessionSnapshotDatawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ReasoningLabel>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<SessionEntry>: UnsafeUnpin,
PhantomData<QueuedMessage>: UnsafeUnpin,
impl UnwindSafe for SessionSnapshotData
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