pub struct PtySpawnRequest {
pub argv: Vec<String>,
pub cwd: Option<PathBuf>,
pub env: Vec<(String, String)>,
pub clear_inherited_env: bool,
pub rows: u16,
pub cols: u16,
pub originator: Option<String>,
}Expand description
Request shape for spawning a daemon-owned PTY session.
Fields§
§argv: Vec<String>§cwd: Option<PathBuf>§env: Vec<(String, String)>§clear_inherited_env: bool§rows: u16§cols: u16§originator: Option<String>Implementations§
Source§impl PtySpawnRequest
impl PtySpawnRequest
pub fn new<S: Into<String>>(argv: impl IntoIterator<Item = S>) -> Self
pub fn with_cwd(self, cwd: impl Into<PathBuf>) -> Self
pub fn with_size(self, rows: u16, cols: u16) -> Self
pub fn with_originator(self, originator: impl Into<String>) -> Self
pub fn with_envs<I, K, V>(self, env: I) -> Self
Trait Implementations§
Source§impl Clone for PtySpawnRequest
impl Clone for PtySpawnRequest
Source§fn clone(&self) -> PtySpawnRequest
fn clone(&self) -> PtySpawnRequest
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 moreAuto Trait Implementations§
impl Freeze for PtySpawnRequest
impl RefUnwindSafe for PtySpawnRequest
impl Send for PtySpawnRequest
impl Sync for PtySpawnRequest
impl Unpin for PtySpawnRequest
impl UnsafeUnpin for PtySpawnRequest
impl UnwindSafe for PtySpawnRequest
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