pub struct AttachResult {
pub host_entry: Option<String>,
pub host_build_id: Option<Option<String>>,
pub session_attachments: Option<bool>,
pub binding_key: Option<String>,
pub client_kind: Option<LocalClientKind>,
pub snapshot: SessionSnapshotData,
pub runtime: RuntimeViewData,
pub saved_sessions: Vec<SessionSummary>,
}Expand description
Result of the attach request (TS AttachResult).
Capability fields double as version negotiation: a newer client reads a
missing sessionAttachments or an unexpected clientKind echo as “this
host is older” and reports a restart instruction instead of silently
degrading (the TS capability-order rule).
Fields§
§host_entry: Option<String>The host’s entry script — source tree or built bundle — for the vintage check against the client’s own entry.
host_build_id: Option<Option<String>>Immutable compiled host identity: null for a source run, absent on
an older host (the distinction is preserved).
session_attachments: Option<bool>The host can attach this conversation without replacing another
controller; true whenever present.
binding_key: Option<String>Host-issued binding key; every later session-bound request echoes it.
client_kind: Option<LocalClientKind>The client identity the host accepted for this socket.
snapshot: SessionSnapshotData§runtime: RuntimeViewData§saved_sessions: Vec<SessionSummary>Trait Implementations§
Source§impl Clone for AttachResult
impl Clone for AttachResult
Source§impl Debug for AttachResult
impl Debug for AttachResult
Source§impl<'de> Deserialize<'de> for AttachResult
impl<'de> Deserialize<'de> for AttachResult
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 AttachResult
impl PartialEq for AttachResult
Source§impl Serialize for AttachResult
impl Serialize for AttachResult
impl StructuralPartialEq for AttachResult
Auto Trait Implementations§
impl Forget for AttachResult
impl Freeze for AttachResultwhere
*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,
PhantomData<ReasoningVariant>: Freeze,
PhantomData<SessionSummary>: Freeze,
impl Move for AttachResult
impl RefUnwindSafe for AttachResult
impl Send for AttachResult
impl Sync for AttachResult
impl Unpin for AttachResult
impl UnsafeUnpin for AttachResultwhere
*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,
PhantomData<ReasoningVariant>: UnsafeUnpin,
PhantomData<SessionSummary>: UnsafeUnpin,
impl UnwindSafe for AttachResult
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