Struct term_transcript::PtyCommand
source · [−]pub struct PtyCommand { /* private fields */ }
Available on crate feature
portable-pty
only.Expand description
Command to spawn in a pseudo-terminal (PTY).
Examples
Since shell spawning is performed in a generic way,
PtyCommand
can be used as a drop-in replacement for Command
:
let transcript = Transcript::from_inputs(
&mut ShellOptions::new(PtyCommand::default()),
vec![UserInput::command(r#"echo "Hello world!""#)],
)?;
// do something with `transcript`...
Implementations
sourceimpl PtyCommand
impl PtyCommand
Trait Implementations
sourceimpl Clone for PtyCommand
impl Clone for PtyCommand
sourcefn clone(&self) -> PtyCommand
fn clone(&self) -> PtyCommand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ConfigureCommand for PtyCommand
impl ConfigureCommand for PtyCommand
sourceimpl Debug for PtyCommand
impl Debug for PtyCommand
sourceimpl Default for PtyCommand
impl Default for PtyCommand
sourceimpl SpawnShell for PtyCommand
impl SpawnShell for PtyCommand
type ShellProcess = PtyShell
type ShellProcess = PtyShell
Spawned shell process.
sourcefn spawn_shell(&mut self) -> Result<SpawnedShell<Self>>
fn spawn_shell(&mut self) -> Result<SpawnedShell<Self>>
Spawns a shell process. Read more
Auto Trait Implementations
impl RefUnwindSafe for PtyCommand
impl Send for PtyCommand
impl Sync for PtyCommand
impl Unpin for PtyCommand
impl UnwindSafe for PtyCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more