Struct tmux_interface::commands::windows_and_panes::pipe_pane::PipePane[][src]

pub struct PipePane<'a>(pub TmuxCommand<'a>);

Pipe output sent by the program in target-pane to a shell command or vice versa

Manual

tmux ^2.7:

tmux pipe-pane [-IOo] [-t target-pane] [shell-command]
(alias: pipep)

tmux ^1.2:

tmux pipe-pane [-o] [-t target-pane] [shell-command]
(alias: pipep)

tmux ^1.1:

tmux pipe-pane [-o] [-t target-pane] [command]
(alias: pipep)

Implementations

impl<'a> PipePane<'a>[src]

pub fn new() -> Self[src]

pub fn stdout(&mut self) -> &mut Self[src]

[-I] - stdin is connected

pub fn stdin(&mut self) -> &mut Self[src]

[-O] - stdout is connected

pub fn open(&mut self) -> &mut Self[src]

[-o] - only open a new pipe if no previous pipe exists

pub fn target_pane<S: Into<Cow<'a, str>>>(
    &mut self,
    target_pane: S
) -> &mut Self
[src]

[-t target-pane] - target-pane

pub fn shell_command<S: Into<Cow<'a, str>>>(
    &mut self,
    shell_command: S
) -> &mut Self
[src]

[shell-command] - shell-command

pub fn output(&self) -> Result<TmuxOutput, Error>[src]

Trait Implementations

impl<'a> Clone for PipePane<'a>[src]

impl<'a> Debug for PipePane<'a>[src]

impl<'a> Default for PipePane<'a>[src]

impl<'a> From<&'_ TmuxCommand<'a>> for PipePane<'a>[src]

impl<'a> From<TmuxCommand<'a>> for PipePane<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.