Struct tmux_interface::commands::key_bindings::bind_key::BindKey[][src]

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

Structure binding key key to command

Manual

tmux 3.1:

tmux bind-key [-nr] [-N note] [-T key-table] key command [arguments]
(alias: bind)

tmux ^2.4:

tmux bind-key [-nr] [-T key-table] key command [arguments]
(alias: bind)

tmux ^2.3:

tmux bind-key [-cnr] [-R repeat-count] [-t mode-table] [-T key-table] key command [arguments]
(alias: bind)

tmux ^2.1:

tmux bind-key [-cnr] [-t mode-table] [-T key-table] key command [arguments]
(alias: bind)

tmux ^2.0:

tmux bind-key [-cnr] [-t mode-table] key command [arguments]
(alias: bind)

tmux ^1.0:

tmux bind-key [-cnr] [-t key-table] key command [arguments]
(alias: bind)

tmux ^0.8:

tmux bind-key [-r] key command [arguments]
(alias: bind)

Implementations

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

pub fn new() -> Self[src]

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

[-n] - an alias for -T root

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

[-r] - this key may repeat

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

[-T key-table] - key-table

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

[arguments] - arguments

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

key

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

command

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

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for BindKey<'a>

impl<'a> Send for BindKey<'a>

impl<'a> Sync for BindKey<'a>

impl<'a> Unpin for BindKey<'a>

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