Struct tmux_interface::commands::options::set_option::SetOption[][src]

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

Structure for setting a pane/window/session/server option

Manual

tmux ^3.0:

tmux set-option [-aFgopqsuw] [-t target-pane] option value
(alias: set)

tmux ^2.6:

tmux set-option [-aFgoqsuw] [-t target-session | target-window] option value
(alias: set)

tmux ^1.8:

tmux set-option [-agoqsuw] [-t target-session | target-window] option value
(alias: set)

tmux ^1.7:

tmux set-option [-agqsuw] [-t target-session | target-window] option value
(alias: set)

tmux ^1.2:

tmux set-option [-agsuw] [-t target-session | target-window] option value
(alias: set)

tmux ^1.0:

tmux set-option [-agu] [-t target-session] option value
(alias: set)

tmux ^0.8:

tmux set-option [-gu] [-t target-session] option value
(alias: set)

Implementations

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

pub fn new() -> Self[src]

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

[-a] - value is appended to the existing setting, if the option expects a string or a style

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

[-F] - expand formats in the option value

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

[-g] - the global session or window option is set

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

[-o] - prevents setting an option that is already set

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

[-q] - suppress errors about unknown or ambiguous options

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

[-s] - set a server option

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

[-u] - unset an option, so a session inherits the option from the global options

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

[-w] - set a window option

pub fn target(&mut self, target: &'a str) -> &mut Self[src]

[-t target-session | target-window]

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

option

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

value

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

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for SetOption<'a>

impl<'a> Send for SetOption<'a>

impl<'a> Sync for SetOption<'a>

impl<'a> Unpin for SetOption<'a>

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