pub struct RespawnWindow<'a> {
pub kill: bool,
pub start_directory: Option<Cow<'a, str>>,
pub environment: Option<Cow<'a, str>>,
pub target_window: Option<Cow<'a, str>>,
pub shell_command: Option<Cow<'a, str>>,
}
Expand description
Reactivate a window in which the command has exited
§Manual
tmux ^3.0:
respawn-window [-k] [-c start-directory] [-e environment] [-t target-window]
[shell-command]
(alias: respawnw)
tmux ^2.6:
```text
respawn-window [-k] [-c start-directory] [-t target-window]
[shell-command]
(alias: respawnw)
tmux ^1.2:
```text
respawn-window [-k] [-t target-window] [shell-command]
(alias: respawnw)
tmux ^0.8:
respawn-window [-k] [-t target-window] [command]
(alias: respawnw)
Fields§
§kill: bool
[-k]
- any existing command is killed
start_directory: Option<Cow<'a, str>>
[-c start-directory]
- start-directory
environment: Option<Cow<'a, str>>
[-e environment]
- environment
target_window: Option<Cow<'a, str>>
[-t target-window]
- target-window
shell_command: Option<Cow<'a, str>>
[shell-command]
- shell-command
Implementations§
source§impl<'a> RespawnWindow<'a>
impl<'a> RespawnWindow<'a>
pub fn new() -> Self
sourcepub fn start_directory<S: Into<Cow<'a, str>>>(self, start_directory: S) -> Self
pub fn start_directory<S: Into<Cow<'a, str>>>(self, start_directory: S) -> Self
[-c start-directory]
- start-directory
sourcepub fn environment<S: Into<Cow<'a, str>>>(self, environment: S) -> Self
pub fn environment<S: Into<Cow<'a, str>>>(self, environment: S) -> Self
[-e environment]
- environment
sourcepub fn target_window<S: Into<Cow<'a, str>>>(self, target_window: S) -> Self
pub fn target_window<S: Into<Cow<'a, str>>>(self, target_window: 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> Clone for RespawnWindow<'a>
impl<'a> Clone for RespawnWindow<'a>
source§fn clone(&self) -> RespawnWindow<'a>
fn clone(&self) -> RespawnWindow<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for RespawnWindow<'a>
impl<'a> Debug for RespawnWindow<'a>
source§impl<'a> Default for RespawnWindow<'a>
impl<'a> Default for RespawnWindow<'a>
source§fn default() -> RespawnWindow<'a>
fn default() -> RespawnWindow<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<RespawnWindow<'a>> for TmuxCommand<'a>
impl<'a> From<RespawnWindow<'a>> for TmuxCommand<'a>
source§fn from(item: RespawnWindow<'a>) -> Self
fn from(item: RespawnWindow<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for RespawnWindow<'a>
impl<'a> Hash for RespawnWindow<'a>
source§impl<'a> Ord for RespawnWindow<'a>
impl<'a> Ord for RespawnWindow<'a>
source§fn cmp(&self, other: &RespawnWindow<'a>) -> Ordering
fn cmp(&self, other: &RespawnWindow<'a>) -> Ordering
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 RespawnWindow<'a>
impl<'a> PartialEq for RespawnWindow<'a>
source§fn eq(&self, other: &RespawnWindow<'a>) -> bool
fn eq(&self, other: &RespawnWindow<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for RespawnWindow<'a>
impl<'a> PartialOrd for RespawnWindow<'a>
source§fn partial_cmp(&self, other: &RespawnWindow<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &RespawnWindow<'a>) -> Option<Ordering>
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 RespawnWindow<'a>
impl<'a> StructuralPartialEq for RespawnWindow<'a>
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§
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