pub struct C2SessionSnapshot {Show 14 fields
pub instance_id: AgentInstanceId,
pub agent_id: AgentId,
pub transport: TransportKind,
pub generation: SessionGeneration,
pub status: C2SessionStatus,
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 provider_activity: ProviderActivity,
pub provider_interaction_pending: bool,
pub provider_identity_present: bool,
pub screen_state: PtyScreenState,
}Fields§
§instance_id: AgentInstanceId§agent_id: AgentId§transport: TransportKind§generation: SessionGeneration§status: C2SessionStatus§pending_operation: Option<OperationId>§pending_input: Option<PreparedInputKind>§process_id: Option<u32>§terminal_size: Option<TerminalSize>§terminal_frame: Option<TerminalFrame>§provider_activity: ProviderActivity§provider_interaction_pending: bool§provider_identity_present: bool§screen_state: PtyScreenStateThe session’s CURRENT screen classification, projected from
gate4agent_types::SessionSnapshot::screen_state the same way
provider_activity/provider_interaction_pending are: as its own
field rather than something a reader reconstructs from
terminal_frame, which only carries the classification stamped at
one past frame, not the session’s current one. #[serde(default)]
so a peer that predates this field decodes it as Unknown.
Trait Implementations§
Source§impl Clone for C2SessionSnapshot
impl Clone for C2SessionSnapshot
Source§impl Debug for C2SessionSnapshot
impl Debug for C2SessionSnapshot
Source§impl<'de> Deserialize<'de> for C2SessionSnapshot
impl<'de> Deserialize<'de> for C2SessionSnapshot
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 C2SessionSnapshot
Source§impl From<&SessionSnapshot> for C2SessionSnapshot
impl From<&SessionSnapshot> for C2SessionSnapshot
Source§fn from(session: &SessionSnapshot) -> Self
fn from(session: &SessionSnapshot) -> Self
Converts to this type from the input type.
Source§impl PartialEq for C2SessionSnapshot
impl PartialEq for C2SessionSnapshot
Source§impl Serialize for C2SessionSnapshot
impl Serialize for C2SessionSnapshot
impl StructuralPartialEq for C2SessionSnapshot
Auto Trait Implementations§
impl Freeze for C2SessionSnapshot
impl RefUnwindSafe for C2SessionSnapshot
impl Send for C2SessionSnapshot
impl Sync for C2SessionSnapshot
impl Unpin for C2SessionSnapshot
impl UnsafeUnpin for C2SessionSnapshot
impl UnwindSafe for C2SessionSnapshot
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