pub struct SessionsOpenAttach {
pub kind: SessionsOpenAttachKind,
pub session_id: SessionId,
}Expand description
Parameters for attaching to an already-active session by ID.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§kind: SessionsOpenAttachKindAttach to an already-active in-process session by ID. Unlike resume, this does NOT re-load from disk; the session must already be loaded by an earlier create/resume call. Returns status: 'not_found' when no active session matches the id. Useful for in-process consumers that need a fresh API handle to a session opened elsewhere (e.g., a peer foreground-session switch).
session_id: SessionIdSession ID to attach to.
Trait Implementations§
Source§impl Clone for SessionsOpenAttach
impl Clone for SessionsOpenAttach
Source§fn clone(&self) -> SessionsOpenAttach
fn clone(&self) -> SessionsOpenAttach
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionsOpenAttach
impl Debug for SessionsOpenAttach
Source§impl Default for SessionsOpenAttach
impl Default for SessionsOpenAttach
Source§fn default() -> SessionsOpenAttach
fn default() -> SessionsOpenAttach
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionsOpenAttach
impl<'de> Deserialize<'de> for SessionsOpenAttach
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
Auto Trait Implementations§
impl Freeze for SessionsOpenAttach
impl RefUnwindSafe for SessionsOpenAttach
impl Send for SessionsOpenAttach
impl Sync for SessionsOpenAttach
impl Unpin for SessionsOpenAttach
impl UnsafeUnpin for SessionsOpenAttach
impl UnwindSafe for SessionsOpenAttach
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