Struct ServerOptions

Source
pub struct ServerOptions<'a> {
Show 19 fields pub backspace: Option<Cow<'a, str>>, pub buffer_limit: Option<usize>, pub command_alias: Option<Vec<Cow<'a, str>>>, pub copy_command: Option<Cow<'a, str>>, pub default_terminal: Option<Cow<'a, str>>, pub escape_time: Option<usize>, pub editor: Option<Cow<'a, str>>, pub exit_empty: Option<Switch>, pub exit_unattached: Option<Switch>, pub extended_keys: Option<Switch>, pub focus_events: Option<Switch>, pub history_file: Option<Cow<'a, str>>, pub message_limit: Option<usize>, pub prompt_history_limit: Option<usize>, pub set_clipboard: Option<SetClipboard>, pub terminal_features: Option<Vec<Cow<'a, str>>>, pub terminal_overrides: Option<Vec<Cow<'a, str>>>, pub user_keys: Option<Vec<Cow<'a, str>>>, pub user_options: HashMap<String, Option<Cow<'a, str>>>,
}

Fields§

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

backspace key

§buffer_limit: Option<usize>

buffer-limit number

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

command-alias[] name=value

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

copy-command shell-command

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

default-terminal terminal

§escape_time: Option<usize>

escape-time time

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

editor shell-command

§exit_empty: Option<Switch>

exit-empty [on | off]

§exit_unattached: Option<Switch>

exit-unattached [on | off]

§extended_keys: Option<Switch>

extended-keys [on | off]

§focus_events: Option<Switch>

focus-events [on | off]

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

history-file path

§message_limit: Option<usize>

message-limit number

§prompt_history_limit: Option<usize>

prompt-history-limit number

§set_clipboard: Option<SetClipboard>

set-clipboard [on | external | off]

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

terminal-features[] string

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

terminal-overrides[] string

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

user-keys[] key

§user_options: HashMap<String, Option<Cow<'a, str>>>

@user-option-name value

Implementations§

Source§

impl<'a> ServerOptions<'a>

Source

pub fn new() -> Self

Source

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

§Manual

tmux ^3.1:

backspace key
Source

pub fn buffer_limit(self, buffer_limit: Option<usize>) -> Self

§Manual

tmux ^1.5:

buffer-limit number
Source

pub fn command_alias<I, S>(self, command_alias: Option<I>) -> Self
where I: IntoIterator<Item = S>, S: Into<Cow<'a, str>>,

§Manual

tmux ^2.4:

command-alias[] name=value
Source

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

§Manual

tmux ^3.2:

copy-command shell-command
Source

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

§Manual

tmux ^2.1:

default-terminal terminal
Source

pub fn escape_time(self, escape_time: Option<usize>) -> Self

§Manual

tmux ^1.2:

escape-time time
Source

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

§Manual

tmux ^3.2:

editor shell-command
Source

pub fn exit_empty(self, exit_empty: Option<Switch>) -> Self

§Manual

tmux ^2.7:

exit-empty [on | off]
Source

pub fn exit_unattached(self, exit_unattached: Option<Switch>) -> Self

§Manual

tmux ^1.4:

exit-unattached [on | off]
Source

pub fn extended_keys(self, extended_keys: Option<Switch>) -> Self

§Manual

tmux ^3.2:

extended-keys [on | off]
Source

pub fn focus_events(self, focus_events: Option<Switch>) -> Self

§Manual

tmux ^1.9:

focus-events [on | off]
Source

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

§Manual

tmux ^2.1:

history-file path
Source

pub fn message_limit(self, message_limit: Option<usize>) -> Self

§Manual

tmux ^2.0:

message-limit number
Source

pub fn prompt_history_limit(self, prompt_history_limit: Option<usize>) -> Self

§Manual

tmux ^3.3:

prompt-history-limit number
Source

pub fn set_clipboard(self, set_clipboard: Option<SetClipboard>) -> Self

§Manual

tmux ^1.5:

set-clipboard [on | external | off]
Source

pub fn terminal_features<I, S>(self, terminal_features: Option<I>) -> Self
where I: IntoIterator<Item = S>, S: Into<Cow<'a, str>>,

§Manual

tmux ^3.2:

terminal-features[] string
Source

pub fn terminal_overrides<I, S>(self, terminal_overrides: Option<I>) -> Self
where I: IntoIterator<Item = S>, S: Into<Cow<'a, str>>,

§Manual

tmux ^2.0:

terminal-overrides[] string
Source

pub fn user_keys<I, S>(self, user_keys: Option<I>) -> Self
where I: IntoIterator<Item = S>, S: Into<Cow<'a, str>>,

§Manual

tmux ^3.0:

user-keys[] key

Trait Implementations§

Source§

impl<'a> Clone for ServerOptions<'a>

Source§

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

Source§

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

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

impl<'a> Default for ServerOptions<'a>

Source§

fn default() -> ServerOptions<'a>

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

impl<'a> Display for ServerOptions<'a>

tmux show-options -g -s
Source§

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

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

impl<'a> FromStr for ServerOptions<'a>

Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl<'a> PartialEq for ServerOptions<'a>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> StructuralPartialEq for ServerOptions<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for ServerOptions<'a>

§

impl<'a> RefUnwindSafe for ServerOptions<'a>

§

impl<'a> Send for ServerOptions<'a>

§

impl<'a> Sync for ServerOptions<'a>

§

impl<'a> Unpin for ServerOptions<'a>

§

impl<'a> UnwindSafe for ServerOptions<'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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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 T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

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

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

Source§

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>,

Source§

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.