pub struct TmuxCommand<'a> {
    pub envs: Option<Vec<(Cow<'a, str>, Cow<'a, str>)>>,
    pub name: Option<Cow<'a, str>>,
    pub alias: Option<Cow<'a, str>>,
    pub flags: Option<Vec<Cow<'a, str>>>,
    pub flags_short: Option<String>,
    pub args: Option<Vec<Cow<'a, str>>>,
    pub subcommands: Option<TmuxCommands<'a>>,
    pub separator: Option<&'a str>,
    pub flags_args_separator: Option<&'a str>,
    pub combine_short_flags: bool,
    pub use_alias: bool,
}
Expand description

Standard tmux command line arguments syntax:

tmux [-2CluvV] [-c shell-command] [-f file] [-L socket-name] [-S socket-path] [command [flags]]

Fields§

§envs: Option<Vec<(Cow<'a, str>, Cow<'a, str>)>>

environment variables

§name: Option<Cow<'a, str>>

command name

§alias: Option<Cow<'a, str>>

command alias

§flags: Option<Vec<Cow<'a, str>>>

flags ([-a] [-b] [-c])

§flags_short: Option<String>

short flags ([-a] [-b] [-c])

§args: Option<Vec<Cow<'a, str>>>

arguments: long flags, options, parameters ([--longflag] [-o opt] [param])

§subcommands: Option<TmuxCommands<'a>>

subcommands list

§separator: Option<&'a str>

separator between command and it’s flags, args, subcommand (“ “)

§flags_args_separator: Option<&'a str>

flags, args separator (usually double dash --)

§combine_short_flags: bool

combine multiple single flags into flags line (-f -a = -fa)

§use_alias: bool

use command alias instead of name (new-session = new)

Implementations§

source§

impl<'a> TmuxCommand<'a>

source

pub fn new() -> Self

Create new Cmd structure (using default() method)

source

pub fn new_full<S: Into<Cow<'a, str>>>(name: S) -> Self

Create new Cmd structure, initialize both not_combine_short_flags and not_use_alias fields with true. Command will not combine flags (separate flags will be used instead), and not use alias (command name will be used instead)

source

pub fn with_name<S: Into<Cow<'a, str>>>(name: S) -> Self

Create and set name field

source

pub fn with_alias<S: Into<Cow<'a, str>>>(alias: S) -> Self

Create and set alias field

source

pub fn with_cmds(cmd_list: TmuxCommands<'a>) -> Self

source

pub fn name<S: Into<Cow<'a, str>>>(&mut self, cmd: S) -> &mut Self

Set Cmd.name field

source

pub fn alias<S: Into<Cow<'a, str>>>(&mut self, alias: S) -> &mut Self

Set Cmd.alias field

source

pub fn env<T, U>(&mut self, key: T, value: U) -> &mut Selfwhere T: Into<Cow<'a, str>>, U: Into<Cow<'a, str>>,

Add an environment variable to Cmd.env

source

pub fn push_flag<S: Into<Cow<'a, str>>>(&mut self, flag: S) -> &mut Self

push a single flag (-x)

source

pub fn push_flag_short(&mut self, flag: char) -> &mut Self

source

pub fn push_option<U, V>(&mut self, key: U, option: V) -> &mut Selfwhere U: Into<Cow<'a, str>>, V: Into<Cow<'a, str>>,

push an option, flag and value (-x <VALUE>)

source

pub fn push_param<S: Into<Cow<'a, str>>>(&mut self, param: S) -> &mut Self

push a single parameter (<VALUE>)

source

pub fn push_cmd(&mut self, cmd: TmuxCommand<'a>) -> &mut Self

source

pub fn push_cmds(&mut self, cmd_list: TmuxCommands<'a>) -> &mut Self

source

pub fn arg<T, U>(&mut self, flag: T, opt: U) -> &mut Selfwhere T: Into<Cow<'a, str>>, U: Into<Cow<'a, str>>,

source

pub fn opt<T, U>(&mut self, short: T, opt: U) -> &mut Selfwhere T: Into<Cow<'a, str>>, U: Into<Cow<'a, str>>,

source

pub fn param<T: Into<Cow<'a, str>>>(&mut self, param: T) -> &mut Self

source

pub fn combine_short_flags(&mut self) -> &mut Self

Set Cmd.combine_short_flags to true

source

pub fn not_combine_short_flags(&mut self) -> &mut Self

source

pub fn combine_short_flags_ext(&mut self, state: bool) -> &mut Self

source

pub fn use_alias(&mut self) -> &mut Self

Set Cmd.use_alias to true

source

pub fn not_use_alias(&mut self) -> &mut Self

source

pub fn use_alias_ext(&mut self, state: bool) -> &mut Self

source

pub fn to_vec(&self) -> Vec<Cow<'a, str>>

Transform Cmd to Vec<Cow<'a, str>>

source

pub fn to_command(self) -> Command

Transform Cmd into std::process::Command

source§

impl<'a> TmuxCommand<'a>

source

pub fn add_command(self, command: TmuxCommand<'a>) -> Self

source

pub fn into_tmux(self) -> Tmux<'a>

create Tmux from TmuxCommand

source§

impl<'a> TmuxCommand<'a>

All functions from man tmux “Buffers” listed below (man tmux)

source§

impl<'a> TmuxCommand<'a>

All functions from man tmux “Clients and Sessions” listed below (man tmux)

source§

impl<'a> TmuxCommand<'a>

All functions from man tmux “Global and session environment” listed below (man tmux)

source§

impl<'a> TmuxCommand<'a>

All functions from man tmux “Hooks” listed below (man tmux)

source

pub fn set_hook() -> SetHook<'a>

source

pub fn show_hooks() -> ShowHooks<'a>

source§

impl<'a> TmuxCommand<'a>

All functions from man tmux “Key Bindings” listed below (man tmux)

source

pub fn bind_key() -> BindKey<'a>

source

pub fn list_keys() -> ListKeys<'a>

source

pub fn send_keys() -> SendKeys<'a>

source

pub fn send_prefix() -> SendPrefix<'a>

source

pub fn unbind_key() -> UnbindKey<'a>

source§

impl<'a> TmuxCommand<'a>

All functions from man tmux “Miscellaneous” listed below (man tmux)

source

pub fn clock_mode() -> ClockMode<'a>

source

pub fn if_shell() -> IfShell<'a>

source

pub fn lock_server() -> LockServer

source

pub fn run_shell() -> RunShell<'a>

source

pub fn wait_for() -> WaitFor<'a>

source§

impl<'a> TmuxCommand<'a>

All functions from man tmux “Options” listed below (man tmux)

source§

impl<'a> TmuxCommand<'a>

All functions from man tmux “Status line” listed below (man tmux)

source§

impl<'a> TmuxCommand<'a>

All functions from man tmux “Windows and Panes” listed below (man tmux)

source

pub fn break_pane() -> BreakPane<'a>

source

pub fn capture_pane() -> CapturePane<'a>

source

pub fn choose_client() -> ChooseClient<'a>

source

pub fn choose_tree() -> ChooseTree<'a>

source

pub fn copy_mode() -> CopyMode<'a>

source

pub fn display_panes() -> DisplayPanes<'a>

source

pub fn find_window() -> FindWindow<'a>

source

pub fn join_pane() -> JoinPane<'a>

source

pub fn kill_pane() -> KillPane<'a>

source

pub fn kill_window() -> KillWindow<'a>

source

pub fn last_pane() -> LastPane<'a>

source

pub fn last_window() -> LastWindow<'a>

source

pub fn list_panes() -> ListPanes<'a>

source

pub fn list_windows() -> ListWindows<'a>

source

pub fn move_pane() -> MovePane<'a>

source

pub fn move_window() -> MoveWindow<'a>

source

pub fn new_window() -> NewWindow<'a>

source

pub fn next_layout() -> NextLayout<'a>

source

pub fn pipe_pane() -> PipePane<'a>

source

pub fn previous_layout() -> PreviousLayout<'a>

source

pub fn previous_window() -> PreviousWindow<'a>

source

pub fn rename_window() -> RenameWindow<'a>

source

pub fn resize_pane() -> ResizePane<'a>

source

pub fn resize_window() -> ResizeWindow<'a>

source

pub fn respawn_window() -> RespawnWindow<'a>

source

pub fn rotate_window() -> RotateWindow<'a>

source

pub fn select_layout() -> SelectLayout<'a>

source

pub fn select_pane() -> SelectPane<'a>

source

pub fn select_window() -> SelectWindow<'a>

source

pub fn split_window() -> SplitWindow<'a>

source

pub fn swap_pane() -> SwapPane<'a>

source

pub fn swap_window() -> SwapWindow<'a>

source§

impl<'a> TmuxCommand<'a>

source

pub fn tmux() -> Tmux<'a>

Trait Implementations§

source§

impl<'a> Clone for TmuxCommand<'a>

source§

fn clone(&self) -> TmuxCommand<'a>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Debug for TmuxCommand<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Default for TmuxCommand<'a>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'a> Display for TmuxCommand<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> From<&TmuxCommand<'a>> for Command

source§

fn from(cmd: &TmuxCommand<'_>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<AttachSession<'a>> for TmuxCommand<'a>

source§

fn from(item: AttachSession<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<BindKey<'a>> for TmuxCommand<'a>

source§

fn from(item: BindKey<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<BreakPane<'a>> for TmuxCommand<'a>

source§

fn from(item: BreakPane<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<CapturePane<'a>> for TmuxCommand<'a>

source§

fn from(item: CapturePane<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ChooseBuffer<'a>> for TmuxCommand<'a>

source§

fn from(item: ChooseBuffer<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ChooseClient<'a>> for TmuxCommand<'a>

source§

fn from(item: ChooseClient<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ChooseTree<'a>> for TmuxCommand<'a>

source§

fn from(item: ChooseTree<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ClearHistory<'a>> for TmuxCommand<'a>

source§

fn from(item: ClearHistory<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ClearPromptHistory<'a>> for TmuxCommand<'a>

source§

fn from(item: ClearPromptHistory<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ClockMode<'a>> for TmuxCommand<'a>

source§

fn from(item: ClockMode<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<CommandPrompt<'a>> for TmuxCommand<'a>

source§

fn from(item: CommandPrompt<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ConfirmBefore<'a>> for TmuxCommand<'a>

source§

fn from(item: ConfirmBefore<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<CopyMode<'a>> for TmuxCommand<'a>

source§

fn from(item: CopyMode<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<DeleteBuffer<'a>> for TmuxCommand<'a>

source§

fn from(item: DeleteBuffer<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<DetachClient<'a>> for TmuxCommand<'a>

source§

fn from(item: DetachClient<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<DisplayMenu<'a>> for TmuxCommand<'a>

source§

fn from(item: DisplayMenu<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<DisplayMessage<'a>> for TmuxCommand<'a>

source§

fn from(item: DisplayMessage<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<DisplayPanes<'a>> for TmuxCommand<'a>

source§

fn from(item: DisplayPanes<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<DisplayPopup<'a>> for TmuxCommand<'a>

source§

fn from(item: DisplayPopup<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<FindWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: FindWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<HasSession<'a>> for TmuxCommand<'a>

source§

fn from(item: HasSession<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<IfShell<'a>> for TmuxCommand<'a>

source§

fn from(item: IfShell<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<JoinPane<'a>> for TmuxCommand<'a>

source§

fn from(item: JoinPane<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<KillPane<'a>> for TmuxCommand<'a>

source§

fn from(item: KillPane<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<KillServer> for TmuxCommand<'a>

source§

fn from(item: KillServer) -> Self

Converts to this type from the input type.
source§

impl<'a> From<KillSession<'a>> for TmuxCommand<'a>

source§

fn from(item: KillSession<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<KillWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: KillWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<LastPane<'a>> for TmuxCommand<'a>

source§

fn from(item: LastPane<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<LastWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: LastWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<LinkWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: LinkWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ListBuffers<'a>> for TmuxCommand<'a>

source§

fn from(item: ListBuffers<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ListClients<'a>> for TmuxCommand<'a>

source§

fn from(item: ListClients<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ListCommands<'a>> for TmuxCommand<'a>

source§

fn from(item: ListCommands<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ListKeys<'a>> for TmuxCommand<'a>

source§

fn from(item: ListKeys<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ListPanes<'a>> for TmuxCommand<'a>

source§

fn from(item: ListPanes<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ListSessions<'a>> for TmuxCommand<'a>

source§

fn from(item: ListSessions<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ListWindows<'a>> for TmuxCommand<'a>

source§

fn from(item: ListWindows<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<LoadBuffer<'a>> for TmuxCommand<'a>

source§

fn from(item: LoadBuffer<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<LockClient<'a>> for TmuxCommand<'a>

source§

fn from(item: LockClient<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<LockServer> for TmuxCommand<'a>

source§

fn from(item: LockServer) -> Self

Converts to this type from the input type.
source§

impl<'a> From<LockSession<'a>> for TmuxCommand<'a>

source§

fn from(item: LockSession<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<MovePane<'a>> for TmuxCommand<'a>

source§

fn from(item: MovePane<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<MoveWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: MoveWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<NewSession<'a>> for TmuxCommand<'a>

source§

fn from(item: NewSession<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<NewWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: NewWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<NextLayout<'a>> for TmuxCommand<'a>

source§

fn from(item: NextLayout<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<NextWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: NextWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<PasteBuffer<'a>> for TmuxCommand<'a>

source§

fn from(item: PasteBuffer<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<PipePane<'a>> for TmuxCommand<'a>

source§

fn from(item: PipePane<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<PreviousLayout<'a>> for TmuxCommand<'a>

source§

fn from(item: PreviousLayout<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<PreviousWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: PreviousWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<RefreshClient<'a>> for TmuxCommand<'a>

source§

fn from(item: RefreshClient<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<RenameSession<'a>> for TmuxCommand<'a>

source§

fn from(item: RenameSession<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<RenameWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: RenameWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ResizePane<'a>> for TmuxCommand<'a>

source§

fn from(item: ResizePane<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ResizeWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: ResizeWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<RespawnPane<'a>> for TmuxCommand<'a>

source§

fn from(item: RespawnPane<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<RespawnWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: RespawnWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<RotateWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: RotateWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<RunShell<'a>> for TmuxCommand<'a>

source§

fn from(item: RunShell<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SaveBuffer<'a>> for TmuxCommand<'a>

source§

fn from(item: SaveBuffer<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SelectLayout<'a>> for TmuxCommand<'a>

source§

fn from(item: SelectLayout<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SelectPane<'a>> for TmuxCommand<'a>

source§

fn from(item: SelectPane<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SelectWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: SelectWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SendKeys<'a>> for TmuxCommand<'a>

source§

fn from(item: SendKeys<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SendPrefix<'a>> for TmuxCommand<'a>

source§

fn from(item: SendPrefix<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ServerAccess<'a>> for TmuxCommand<'a>

source§

fn from(item: ServerAccess<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SetBuffer<'a>> for TmuxCommand<'a>

source§

fn from(item: SetBuffer<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SetEnvironment<'a>> for TmuxCommand<'a>

source§

fn from(item: SetEnvironment<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SetHook<'a>> for TmuxCommand<'a>

source§

fn from(item: SetHook<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SetOption<'a>> for TmuxCommand<'a>

source§

fn from(item: SetOption<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SetWindowOption<'a>> for TmuxCommand<'a>

source§

fn from(item: SetWindowOption<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ShowBuffer<'a>> for TmuxCommand<'a>

source§

fn from(item: ShowBuffer<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ShowEnvironment<'a>> for TmuxCommand<'a>

source§

fn from(item: ShowEnvironment<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ShowHooks<'a>> for TmuxCommand<'a>

source§

fn from(item: ShowHooks<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ShowMessages<'a>> for TmuxCommand<'a>

source§

fn from(item: ShowMessages<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ShowOptions<'a>> for TmuxCommand<'a>

source§

fn from(item: ShowOptions<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ShowPromptHistory<'a>> for TmuxCommand<'a>

source§

fn from(item: ShowPromptHistory<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<ShowWindowOptions<'a>> for TmuxCommand<'a>

source§

fn from(item: ShowWindowOptions<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SourceFile<'a>> for TmuxCommand<'a>

source§

fn from(item: SourceFile<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SplitWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: SplitWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<StartServer> for TmuxCommand<'a>

source§

fn from(item: StartServer) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SuspendClient<'a>> for TmuxCommand<'a>

source§

fn from(item: SuspendClient<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SwapPane<'a>> for TmuxCommand<'a>

source§

fn from(item: SwapPane<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SwapWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: SwapWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<SwitchClient<'a>> for TmuxCommand<'a>

source§

fn from(item: SwitchClient<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<TmuxCommand<'a>> for Command

source§

fn from(cmd: TmuxCommand<'_>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<UnbindKey<'a>> for TmuxCommand<'a>

source§

fn from(item: UnbindKey<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<UnlinkWindow<'a>> for TmuxCommand<'a>

source§

fn from(item: UnlinkWindow<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<WaitFor<'a>> for TmuxCommand<'a>

source§

fn from(item: WaitFor<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> Hash for TmuxCommand<'a>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a> Ord for TmuxCommand<'a>

source§

fn cmp(&self, other: &TmuxCommand<'a>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl<'a> PartialEq<TmuxCommand<'a>> for TmuxCommand<'a>

source§

fn eq(&self, other: &TmuxCommand<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> PartialOrd<TmuxCommand<'a>> for TmuxCommand<'a>

source§

fn partial_cmp(&self, other: &TmuxCommand<'a>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'a> Eq for TmuxCommand<'a>

source§

impl<'a> StructuralEq for TmuxCommand<'a>

source§

impl<'a> StructuralPartialEq for TmuxCommand<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for TmuxCommand<'a>

§

impl<'a> Send for TmuxCommand<'a>

§

impl<'a> Sync for TmuxCommand<'a>

§

impl<'a> Unpin for TmuxCommand<'a>

§

impl<'a> UnwindSafe for TmuxCommand<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.