pub struct SpawnSpec {
pub slot: PaneSlot,
pub shell: String,
pub args: Vec<String>,
pub cwd: Option<String>,
pub env: Vec<(String, String)>,
pub title: String,
pub input_policy: InputPolicy,
}Expand description
What to spawn in one slot when a definition is instantiated. This is
the per-pane data a stored definition must carry so a session can be
re-created (or re-instantiated after a restart) faithfully. Every
field mirrors the corresponding crate::TearPane field so the
instantiate interpreter maps SpawnSpec → TearPane directly.
Fields§
§slot: PaneSlotThe slot this spec fills — the join key to the LayoutPlan.
shell: StringShell/command to run (e.g. "/run/current-system/sw/bin/zsh").
args: Vec<String>Arguments after the shell command.
cwd: Option<String>Working directory at spawn; None inherits from the session.
env: Vec<(String, String)>Per-pane environment overrides — same Vec<(String, String)>
shape as crate::TearPane::env.
title: StringInitial title.
input_policy: InputPolicyInput acceptance policy for the spawned pane.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpawnSpec
impl<'de> Deserialize<'de> for SpawnSpec
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 StructuralPartialEq for SpawnSpec
Auto Trait Implementations§
impl Freeze for SpawnSpec
impl RefUnwindSafe for SpawnSpec
impl Send for SpawnSpec
impl Sync for SpawnSpec
impl Unpin for SpawnSpec
impl UnsafeUnpin for SpawnSpec
impl UnwindSafe for SpawnSpec
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