Struct tmux_interface::commands::windows_and_panes::pipe_pane::PipePane
source · pub struct PipePane<'a> {
pub stdout: bool,
pub stdin: bool,
pub open: bool,
pub target_pane: Option<Cow<'a, str>>,
pub shell_command: Option<Cow<'a, str>>,
}
Expand description
Pipe output sent by the program in target-pane to a shell command or vice versa
§Manual
tmux ^2.7:
pipe-pane [-IOo] [-t target-pane] [shell-command]
(alias: pipep)
tmux ^1.2:
pipe-pane [-o] [-t target-pane] [shell-command]
(alias: pipep)
tmux ^1.1:
pipe-pane [-o] [-t target-pane] [command]
(alias: pipep)
Fields§
§stdout: bool
[-I]
- stdin is connected
stdin: bool
[-O]
- stdout is connected
open: bool
[-o]
- only open a new pipe if no previous pipe exists
target_pane: Option<Cow<'a, str>>
[-t target-pane]
- target-pane
shell_command: Option<Cow<'a, str>>
[shell-command]
- shell-command
Implementations§
source§impl<'a> PipePane<'a>
impl<'a> PipePane<'a>
pub fn new() -> Self
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]
- 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]
- shell-command
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> From<PipePane<'a>> for TmuxCommand<'a>
impl<'a> From<PipePane<'a>> for TmuxCommand<'a>
source§impl<'a> Ord for PipePane<'a>
impl<'a> Ord for PipePane<'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 PipePane<'a>
impl<'a> PartialEq for PipePane<'a>
source§impl<'a> PartialOrd for PipePane<'a>
impl<'a> PartialOrd for PipePane<'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 PipePane<'a>
impl<'a> StructuralPartialEq for PipePane<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PipePane<'a>
impl<'a> Send for PipePane<'a>
impl<'a> Sync for PipePane<'a>
impl<'a> Unpin for PipePane<'a>
impl<'a> UnwindSafe for PipePane<'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