pub struct AttachSessionExt3Request {
pub target: Option<SessionName>,
pub target_spec: Option<String>,
pub detach_other_clients: bool,
pub kill_other_clients: bool,
pub read_only: bool,
pub skip_environment_update: bool,
pub flags: Option<Vec<String>>,
pub working_directory: Option<String>,
pub client_terminal: ClientTerminalContext,
pub client_size: Option<TerminalSize>,
pub attach_capabilities: Vec<String>,
}Expand description
Attach request payload with explicit attach-stream client capabilities.
Fields§
§target: Option<SessionName>The optional exact target session name.
target_spec: Option<String>The optional raw tmux-style target text, including window/pane selectors.
detach_other_clients: boolWhether other attached clients should be detached first.
kill_other_clients: boolWhether other attached clients should be detached and terminated.
read_only: boolWhether readonly attach mode should be enabled.
skip_environment_update: boolWhether client environment updates should be skipped.
flags: Option<Vec<String>>Optional tmux client-flag names such as read-only or active-pane.
working_directory: Option<String>Optional tmux format-expanded working directory applied to the target session.
client_terminal: ClientTerminalContextTerminal/runtime hints captured from the invoking client.
client_size: Option<TerminalSize>The invoking client terminal size, when known.
attach_capabilities: Vec<String>Attach-stream messages this client can decode.
Implementations§
Source§impl AttachSessionExt3Request
impl AttachSessionExt3Request
Sourcepub fn from_ext2(
request: AttachSessionExt2Request,
attach_capabilities: Vec<String>,
) -> Self
pub fn from_ext2( request: AttachSessionExt2Request, attach_capabilities: Vec<String>, ) -> Self
Builds the capability-aware request from the v2 attach request shape.
Sourcepub fn into_ext2_and_capabilities(
self,
) -> (AttachSessionExt2Request, Vec<String>)
pub fn into_ext2_and_capabilities( self, ) -> (AttachSessionExt2Request, Vec<String>)
Splits out the v2 payload fields and the attach-stream capabilities.
Trait Implementations§
Source§impl Clone for AttachSessionExt3Request
impl Clone for AttachSessionExt3Request
Source§fn clone(&self) -> AttachSessionExt3Request
fn clone(&self) -> AttachSessionExt3Request
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more