Struct tmux_interface::commands::miscellaneous::run_shell::RunShell
source · pub struct RunShell<'a> {
pub background: bool,
pub tmux_command: bool,
pub delay: Option<usize>,
pub target_pane: Option<Cow<'a, str>>,
pub shell_command: Option<Cow<'a, str>>,
}
Expand description
§Manual
tmux ^3.2:
run-shell [-bC] [-d delay] [-t target-pane] [shell-command]
(alias: run)
tmux ^1.8:
run-shell [-b] [-t target-pane] shell-command
(alias: run)
tmux ^1.2:
run-shell shell-command
(alias: run)
tmux ^1.1:
run-shell command
(alias: run)
Fields§
§background: bool
[-b]
tmux_command: bool
[-C]
- execute tmux command
delay: Option<usize>
[-d delay]
target_pane: Option<Cow<'a, str>>
[-t target-pane]
shell_command: Option<Cow<'a, str>>
shell-command
Implementations§
source§impl<'a> RunShell<'a>
impl<'a> RunShell<'a>
pub fn new() -> Self
sourcepub fn background(self) -> Self
pub fn background(self) -> Self
[-b]
sourcepub fn tmux_command(self) -> Self
pub fn tmux_command(self) -> Self
[-C]
- execute tmux command
sourcepub fn target_pane<S: Into<Cow<'a, str>>>(self, target_pane: S) -> Self
pub fn target_pane<S: Into<Cow<'a, str>>>(self, target_pane: S) -> Self
[-t target-pane]
sourcepub fn shell_command<S: Into<Cow<'a, str>>>(self, shell_command: S) -> Self
pub fn shell_command<S: Into<Cow<'a, str>>>(self, shell_command: S) -> Self
shell-command
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> From<RunShell<'a>> for TmuxCommand<'a>
impl<'a> From<RunShell<'a>> for TmuxCommand<'a>
source§impl<'a> Ord for RunShell<'a>
impl<'a> Ord for RunShell<'a>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq for RunShell<'a>
impl<'a> PartialEq for RunShell<'a>
source§impl<'a> PartialOrd for RunShell<'a>
impl<'a> PartialOrd for RunShell<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a> Eq for RunShell<'a>
impl<'a> StructuralPartialEq for RunShell<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for RunShell<'a>
impl<'a> Send for RunShell<'a>
impl<'a> Sync for RunShell<'a>
impl<'a> Unpin for RunShell<'a>
impl<'a> UnwindSafe for RunShell<'a>
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