pub struct ShowOptions<'a> {
    pub include_inherited: bool,
    pub global: bool,
    pub hooks: bool,
    pub pane: bool,
    pub quiet: bool,
    pub server: bool,
    pub value: bool,
    pub window: bool,
    pub target: Option<Cow<'a, str>>,
    pub option: Option<Cow<'a, str>>,
}
Expand description

Structure for showing options

§Manual

tmux ^3.0:

show-options [-AgHpqsvw] [-t target-pane] [option]
(alias: show)

tmux ^1.8:

show-options [-gqsvw] [-t target-session | target-window] [option]
(alias: show)

tmux ^1.7:

show-options [-gsw] [-t target-session | target-window] [option]
(alias: show)

tmux ^1.2:

show-options [-gsw] [-t target-session | target-window]
(alias: show)

tmux ^1.0:

show-options [-t target-session]
(alias: show)

tmux ^0.8:

show-options [-t target-session] option value
(alias: show)

Fields§

§include_inherited: bool

[-A] - includes options inherited from a parent set of options

§global: bool

[-g] - global session or window options are listed

§hooks: bool

[-H] - includes hooks (omitted by default)

§pane: bool

[-p] - show window options

§quiet: bool

[-q] - no error will be returned if option is unset

§server: bool

[-s] - show the server options

§value: bool

[-v] - shows only the option value

§window: bool

[-w] - show the window options

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

[-t target-pane] - target session or window name

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

[option] - specify option name

Implementations§

source§

impl<'a> ShowOptions<'a>

source

pub fn new() -> Self

source

pub fn include_inherited(self) -> Self

[-A] - includes options inherited from a parent set of options

source

pub fn global(self) -> Self

[-g] - global session or window options are listed

source

pub fn hooks(self) -> Self

[-H] - includes hooks (omitted by default)

source

pub fn pane(self) -> Self

[-p] - show window options

source

pub fn quiet(self) -> Self

[-q] - no error will be returned if option is unset

source

pub fn server(self) -> Self

[-s] - show the server options

source

pub fn value(self) -> Self

[-v] - shows only the option value

source

pub fn window(self) -> Self

[-w] - show the window options

source

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

[-t target-pane] - target session or window name

source

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

[option] - specify option name

source

pub fn build(self) -> TmuxCommand<'a>

Trait Implementations§

source§

impl<'a> Clone for ShowOptions<'a>

source§

fn clone(&self) -> ShowOptions<'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 ShowOptions<'a>

source§

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

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

impl<'a> Default for ShowOptions<'a>

source§

fn default() -> ShowOptions<'a>

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

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

source§

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

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for ShowOptions<'a>

§

impl<'a> Send for ShowOptions<'a>

§

impl<'a> Sync for ShowOptions<'a>

§

impl<'a> Unpin for ShowOptions<'a>

§

impl<'a> UnwindSafe for ShowOptions<'a>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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, U> TryFrom<U> for T
where 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 T
where 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.