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>
impl<'a> ServerOptions<'a>
pub fn new() -> Self
Sourcepub fn buffer_limit(self, buffer_limit: Option<usize>) -> Self
pub fn buffer_limit(self, buffer_limit: Option<usize>) -> Self
Sourcepub fn command_alias<I, S>(self, command_alias: Option<I>) -> Self
pub fn command_alias<I, S>(self, command_alias: Option<I>) -> Self
Sourcepub fn escape_time(self, escape_time: Option<usize>) -> Self
pub fn escape_time(self, escape_time: Option<usize>) -> Self
Sourcepub fn exit_empty(self, exit_empty: Option<Switch>) -> Self
pub fn exit_empty(self, exit_empty: Option<Switch>) -> Self
Sourcepub fn exit_unattached(self, exit_unattached: Option<Switch>) -> Self
pub fn exit_unattached(self, exit_unattached: Option<Switch>) -> Self
Sourcepub fn extended_keys(self, extended_keys: Option<Switch>) -> Self
pub fn extended_keys(self, extended_keys: Option<Switch>) -> Self
Sourcepub fn focus_events(self, focus_events: Option<Switch>) -> Self
pub fn focus_events(self, focus_events: Option<Switch>) -> Self
Sourcepub fn message_limit(self, message_limit: Option<usize>) -> Self
pub fn message_limit(self, message_limit: Option<usize>) -> Self
Sourcepub fn prompt_history_limit(self, prompt_history_limit: Option<usize>) -> Self
pub fn prompt_history_limit(self, prompt_history_limit: Option<usize>) -> Self
Sourcepub fn set_clipboard(self, set_clipboard: Option<SetClipboard>) -> Self
pub fn set_clipboard(self, set_clipboard: Option<SetClipboard>) -> Self
Sourcepub fn terminal_features<I, S>(self, terminal_features: Option<I>) -> Self
pub fn terminal_features<I, S>(self, terminal_features: Option<I>) -> Self
Sourcepub fn terminal_overrides<I, S>(self, terminal_overrides: Option<I>) -> Self
pub fn terminal_overrides<I, S>(self, terminal_overrides: Option<I>) -> Self
Trait Implementations§
Source§impl<'a> Clone for ServerOptions<'a>
impl<'a> Clone for ServerOptions<'a>
Source§fn clone(&self) -> ServerOptions<'a>
fn clone(&self) -> ServerOptions<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ServerOptions<'a>
impl<'a> Debug for ServerOptions<'a>
Source§impl<'a> Default for ServerOptions<'a>
impl<'a> Default for ServerOptions<'a>
Source§fn default() -> ServerOptions<'a>
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
impl<'a> Display for ServerOptions<'a>
tmux show-options -g -s
Source§impl<'a> FromStr for ServerOptions<'a>
impl<'a> FromStr for ServerOptions<'a>
Source§impl<'a> PartialEq for ServerOptions<'a>
impl<'a> PartialEq for ServerOptions<'a>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more