Struct tmux_interface::commands::windows_and_panes::respawn_window::RespawnWindow[][src]

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

Reactivate a window in which the command has exited

Manual

tmux ^3.0:

tmux respawn-window [-k] [-c start-directory] [-e environment] [-t target-window]
[shell-command]
(alias: respawnw)

tmux ^2.6:
```text
tmux respawn-window [-k] [-c start-directory] [-t target-window]
[shell-command]
(alias: respawnw)

tmux ^1.2:
```text
tmux respawn-window [-k] [-t target-window] [shell-command]
(alias: respawnw)

tmux ^0.8:

tmux respawn-window [-k] [-t target-window] [command]
(alias: respawnw)

Implementations

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

pub fn new() -> Self[src]

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

[-k] - any existing command is killed

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

[-c start-directory] - start-directory

pub fn target_window<S: Into<Cow<'a, str>>>(
    &mut self,
    target_window: 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 RespawnWindow<'a>[src]

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for RespawnWindow<'a>

impl<'a> Send for RespawnWindow<'a>

impl<'a> Sync for RespawnWindow<'a>

impl<'a> Unpin for RespawnWindow<'a>

impl<'a> UnwindSafe for RespawnWindow<'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.