Struct tmux_interface::commands::options::set_option::SetOption [−][src]
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]
fn from(item: &TmuxCommand<'a>) -> Self
[src]
impl<'a> From<TmuxCommand<'a>> for SetOption<'a>
[src]
fn from(item: TmuxCommand<'a>) -> Self
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,