#[non_exhaustive]pub struct SessionReadResult {
pub session: Session,
pub recovery_observation: Option<RecoveryObservation>,
pub view_cursor: String,
pub history: SessionHistory,
pub pending_requests: Vec<PendingRequestPointer>,
pub last_turn: Option<LastTurn>,
pub blocked_prompt: Option<BlockedPrompt>,
pub queued_inputs: Option<Vec<QueuedInput>>,
}Expand description
session/read result. The viewCursor is the fold head at read time — a
point-in-time read, immediately stale if a foreign host is appending.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session: SessionThe session as folded point-in-time.
recovery_observation: Option<RecoveryObservation>Current local construction only; never inferred from retained history. Absence establishes neither a choice nor supported recovery.
view_cursor: StringThe fold head at read time.
history: SessionHistoryThe served history.
pending_requests: Vec<PendingRequestPointer>The same pointer shape as session/resume. Because session/read never
subscribes this is a point-in-time log read only: no requests are
re-issued after it.
last_turn: Option<LastTurn>Same member as session/resume.
blocked_prompt: Option<BlockedPrompt>Same member as session/resume.
queued_inputs: Option<Vec<QueuedInput>>The inputs still queued for delivery to the read session. Absent-when-empty: a missing member means nothing queued, never an error.
Trait Implementations§
Source§impl Clone for SessionReadResult
impl Clone for SessionReadResult
Source§impl Debug for SessionReadResult
impl Debug for SessionReadResult
Source§impl<'de> Deserialize<'de> for SessionReadResult
impl<'de> Deserialize<'de> for SessionReadResult
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 SessionReadResult
impl PartialEq for SessionReadResult
Source§impl Serialize for SessionReadResult
impl Serialize for SessionReadResult
impl StructuralPartialEq for SessionReadResult
Auto Trait Implementations§
impl Freeze for SessionReadResult
impl RefUnwindSafe for SessionReadResult
impl Send for SessionReadResult
impl Sync for SessionReadResult
impl Unpin for SessionReadResult
impl UnsafeUnpin for SessionReadResult
impl UnwindSafe for SessionReadResult
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