pub struct SessionSnapshot {Show 18 fields
pub instance_id: AgentInstanceId,
pub agent_id: AgentId,
pub transport: TransportKind,
pub generation: SessionGeneration,
pub status: SessionStatus,
pub pending_operation: Option<OperationId>,
pub pending_input: Option<PreparedInputKind>,
pub process_id: Option<u32>,
pub terminal_size: Option<TerminalSize>,
pub terminal_frame: Option<TerminalFrame>,
pub terminal_stale: Option<String>,
pub session_options: Option<SessionOptionSelection>,
pub capabilities: CapabilitySnapshot,
pub history: HistorySnapshot,
pub resume: ResumeSnapshot,
pub foreground: ForegroundSnapshot,
pub provider: ProviderSnapshot,
pub screen_state: PtyScreenState,
}Fields§
§instance_id: AgentInstanceId§agent_id: AgentId§transport: TransportKind§generation: SessionGeneration§status: SessionStatus§pending_operation: Option<OperationId>§pending_input: Option<PreparedInputKind>§process_id: Option<u32>§terminal_size: Option<TerminalSize>§terminal_frame: Option<TerminalFrame>§terminal_stale: Option<String>§session_options: Option<SessionOptionSelection>§capabilities: CapabilitySnapshot§history: HistorySnapshot§resume: ResumeSnapshot§foreground: ForegroundSnapshot§provider: ProviderSnapshot§screen_state: PtyScreenStateThe session’s CURRENT screen classification, as opposed to
terminal_frame’s per-frame stamp – both are read off one value
computed at the node, but this one is what a consumer reads when it
wants the state now without subscribing to terminal frames, which is
what makes gating a dispatch possible for a caller holding only the
session inventory.
Trait Implementations§
Source§impl Clone for SessionSnapshot
impl Clone for SessionSnapshot
Source§impl Debug for SessionSnapshot
impl Debug for SessionSnapshot
Source§impl<'de> Deserialize<'de> for SessionSnapshot
impl<'de> Deserialize<'de> for SessionSnapshot
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
impl Eq for SessionSnapshot
Source§impl PartialEq for SessionSnapshot
impl PartialEq for SessionSnapshot
Source§impl Serialize for SessionSnapshot
impl Serialize for SessionSnapshot
impl StructuralPartialEq for SessionSnapshot
Auto Trait Implementations§
impl Freeze for SessionSnapshot
impl RefUnwindSafe for SessionSnapshot
impl Send for SessionSnapshot
impl Sync for SessionSnapshot
impl Unpin for SessionSnapshot
impl UnsafeUnpin for SessionSnapshot
impl UnwindSafe for SessionSnapshot
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