pub struct RunShell { /* private fields */ }Expand description
Typed arguments for run-shell.
Implementations§
Source§impl RunShell
impl RunShell
Sourcepub const fn background(self, enabled: bool) -> Self
pub const fn background(self, enabled: bool) -> Self
Runs the job without waiting for output.
Sourcepub const fn as_tmux_command(self, enabled: bool) -> Self
pub const fn as_tmux_command(self, enabled: bool) -> Self
Parses the command as tmux commands instead of a shell command.
Sourcepub fn cwd(self, cwd: impl Into<PathBuf>) -> Self
pub fn cwd(self, cwd: impl Into<PathBuf>) -> Self
Sets the starting directory. Requires tmux 3.4+.
Sourcepub const fn show_stderr(self, enabled: bool) -> Self
pub const fn show_stderr(self, enabled: bool) -> Self
Includes job standard error. Requires tmux 3.6+.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunShell
impl RefUnwindSafe for RunShell
impl Send for RunShell
impl Sync for RunShell
impl Unpin for RunShell
impl UnsafeUnpin for RunShell
impl UnwindSafe for RunShell
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