#[non_exhaustive]pub struct PtyConfig {
pub dimensions: (u16, u16),
pub login_shell: bool,
pub env_mode: EnvMode,
pub env: HashMap<String, String>,
pub working_directory: Option<PathBuf>,
}Expand description
Configuration for PTY spawning.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dimensions: (u16, u16)Terminal dimensions (cols, rows).
login_shell: boolWhether to use a login shell.
env_mode: EnvModeEnvironment variable handling.
env: HashMap<String, String>Environment variables to apply per env_mode (overlay for Extend,
the full set for Clear, ignored for Inherit).
working_directory: Option<PathBuf>Working directory for the spawned child. None inherits the parent’s
current directory.
Trait Implementations§
Source§impl From<&SessionConfig> for PtyConfig
impl From<&SessionConfig> for PtyConfig
Source§fn from(config: &SessionConfig) -> Self
fn from(config: &SessionConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PtyConfig
impl RefUnwindSafe for PtyConfig
impl Send for PtyConfig
impl Sync for PtyConfig
impl Unpin for PtyConfig
impl UnsafeUnpin for PtyConfig
impl UnwindSafe for PtyConfig
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