pub struct ServerOptionsCtl<'a> {
    pub invoker: &'a dyn Fn(TmuxCommand<'a>) -> Result<TmuxOutput, Error>,
}

Fields§

§invoker: &'a dyn Fn(TmuxCommand<'a>) -> Result<TmuxOutput, Error>

Implementations§

source§

impl<'a> ServerOptionsCtl<'a>

source

pub fn new( invoker: &'a dyn Fn(TmuxCommand<'a>) -> Result<TmuxOutput, Error> ) -> Self

source

pub fn with_invoker( invoker: &'a dyn Fn(TmuxCommand<'a>) -> Result<TmuxOutput, Error> ) -> Self

source

pub fn invoker( &self ) -> &'a dyn Fn(TmuxCommand<'a>) -> Result<TmuxOutput, Error>

source

pub fn get_all(&self) -> Result<ServerOptions<'a>, Error>

source

pub fn get_all_ext( invoke: &dyn Fn(&mut TmuxCommand<'a>) -> String ) -> Result<ServerOptions<'a>, Error>

source

pub fn set_all( &self, server_options: ServerOptions<'a> ) -> Result<TmuxOutput, Error>

source

pub fn set_all_ext( invoke: &dyn Fn(TmuxCommand<'a>) -> Result<TmuxOutput, Error>, server_options: ServerOptions<'a> ) -> Result<TmuxOutput, Error>

source

pub fn get<T: FromStr>(&self, cmd: TmuxCommand<'a>) -> Result<Option<T>, Error>

source

pub fn set(&self, cmd: TmuxCommand<'a>) -> Result<TmuxOutput, Error>

source

pub fn get_array( &self, get_option_cmd: TmuxCommand<'a> ) -> Result<Option<Vec<String>>, Error>

source§

impl<'a> ServerOptionsCtl<'a>

source

pub fn get_backspace(&self) -> Result<Option<String>, Error>

Manual

tmux ^3.1:

backspace key
source

pub fn set_backspace(&self, key: Option<String>) -> Result<TmuxOutput, Error>

Manual

tmux ^3.1:

backspace key
source

pub fn get_buffer_limit(&self) -> Result<Option<usize>, Error>

Manual

tmux ^1.5:

buffer-limit number
source

pub fn set_buffer_limit( &self, buffer_limit: Option<usize> ) -> Result<TmuxOutput, Error>

Manual

tmux ^1.5:

buffer-limit number
source

pub fn get_command_alias(&self) -> Result<Option<Vec<String>>, Error>

Manual

tmux ^2.4:

command-alias[] name=value
source

pub fn set_command_alias<I, S>( &self, command_alias: Option<I> ) -> Result<TmuxOutput, Error>where I: IntoIterator<Item = S>, S: Into<Cow<'a, str>>,

Manual

tmux ^2.4:

command-alias[] name=value
source

pub fn get_copy_command(&self) -> Result<Option<String>, Error>

Manual

tmux ^3.2:

copy-command shell-command
source

pub fn set_copy_command( &self, copy_command: Option<String> ) -> Result<TmuxOutput, Error>

Manual

tmux ^3.2:

copy-command shell-command
source

pub fn get_default_terminal(&self) -> Result<Option<String>, Error>

Manual

tmux ^2.1:

default-terminal terminal
source

pub fn set_default_terminal( &self, default_terminal: Option<String> ) -> Result<TmuxOutput, Error>

Manual

tmux ^2.1:

default-terminal terminal
source

pub fn get_escape_time(&self) -> Result<Option<usize>, Error>

Manual

tmux ^1.2:

escape-time time
source

pub fn set_escape_time( &self, escape_time: Option<usize> ) -> Result<TmuxOutput, Error>

Manual

tmux ^1.2:

escape-time time
source

pub fn get_editor(&self) -> Result<Option<String>, Error>

Manual

tmux ^3.2:

editor shell-command
source

pub fn set_editor<S>(&self, editor: Option<S>) -> Result<TmuxOutput, Error>where S: Into<Cow<'a, str>>,

Manual

tmux ^3.2:

editor shell-command
source

pub fn get_exit_empty(&self) -> Result<Option<Switch>, Error>

Manual

tmux ^2.7:

exit-empty [on | off]
source

pub fn set_exit_empty( &self, exit_empty: Option<Switch> ) -> Result<TmuxOutput, Error>

Manual

tmux ^2.7:

exit-empty [on | off]
source

pub fn get_exit_unattached(&self) -> Result<Option<Switch>, Error>

Manual

tmux ^1.4:

exit-unattached [on | off]
source

pub fn set_exit_unattached( &self, exit_unattached: Option<Switch> ) -> Result<TmuxOutput, Error>

Manual

tmux ^1.4:

exit-unattached [on | off]
source

pub fn get_extended_keys(&self) -> Result<Option<Switch>, Error>

Manual

tmux ^3.2:

extended-keys [on | off]
source

pub fn set_extended_keys( &self, extended_keys: Option<Switch> ) -> Result<TmuxOutput, Error>

Manual

tmux ^3.2:

extended-keys [on | off]
source

pub fn get_focus_events(&self) -> Result<Option<Switch>, Error>

Manual

tmux ^1.9:

focus-events [on | off]
source

pub fn set_focus_events( &self, focus_events: Option<Switch> ) -> Result<TmuxOutput, Error>

Manual

tmux ^1.9:

focus-events [on | off]
source

pub fn get_history_file(&self) -> Result<Option<String>, Error>

Manual

tmux ^2.1:

history-file path
source

pub fn set_history_file( &self, history_file: Option<String> ) -> Result<TmuxOutput, Error>

Manual

tmux ^2.1:

history-file path
source

pub fn get_message_limit(&self) -> Result<Option<usize>, Error>

Manual

tmux ^2.0:

message-limit number
source

pub fn set_message_limit( &self, message_limit: Option<usize> ) -> Result<TmuxOutput, Error>

Manual

tmux ^2.0:

message-limit number
source

pub fn get_prompt_history_limit(&self) -> Result<Option<usize>, Error>

Manual

tmux ^3.3:

prompt-history-limit number
source

pub fn set_prompt_history_limit( &self, prompt_history_limit: Option<usize> ) -> Result<TmuxOutput, Error>

Manual

tmux ^3.3:

prompt-history-limit number
source

pub fn get_set_clipboard(&self) -> Result<Option<SetClipboard>, Error>

Manual

tmux ^1.5:

set-clipboard [on | external | off]
source

pub fn set_set_clipboard( &self, set_clipboard: Option<SetClipboard> ) -> Result<TmuxOutput, Error>

Manual

tmux ^1.5:

set-clipboard [on | external | off]
source

pub fn get_terminal_features(&self) -> Result<Option<Vec<String>>, Error>

Manual

tmux ^3.2:

terminal-features[] string
source

pub fn set_terminal_features<I, S>( &self, terminal_features: Option<I> ) -> Result<TmuxOutput, Error>where I: IntoIterator<Item = S>, S: Into<Cow<'a, str>>,

Manual

tmux ^3.2:

terminal-features[] string
source

pub fn get_terminal_overrides(&self) -> Result<Option<Vec<String>>, Error>

Manual

tmux ^2.0:

terminal-overrides[] string
source

pub fn set_terminal_overrides<I, S>( &self, terminal_overrides: Option<I> ) -> Result<TmuxOutput, Error>where I: IntoIterator<Item = S>, S: Into<Cow<'a, str>>,

Manual

tmux ^2.0:

terminal-overrides[] string
source

pub fn get_user_keys(&self) -> Result<Option<Vec<String>>, Error>

Manual

tmux ^3.0:

user-keys[] key
source

pub fn set_user_keys<I, S>( &self, user_keys: Option<I> ) -> Result<TmuxOutput, Error>where I: IntoIterator<Item = S>, S: Into<Cow<'a, str>>,

Manual

tmux ^3.0:

user-keys[] key
source

pub fn get_user_option<S: Into<Cow<'a, str>>>( &self, name: S ) -> Result<Option<String>, Error>

Manual

tmux:

@user-option-name value
source

pub fn set_user_option<S: Into<Cow<'a, str>>, T: Into<Cow<'a, str>>>( &self, name: S, value: Option<T> ) -> Result<TmuxOutput, Error>

Manual

tmux:

@user-option-name value

Trait Implementations§

source§

impl<'a> Default for ServerOptionsCtl<'a>

source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for ServerOptionsCtl<'a>

§

impl<'a> !Send for ServerOptionsCtl<'a>

§

impl<'a> !Sync for ServerOptionsCtl<'a>

§

impl<'a> Unpin for ServerOptionsCtl<'a>

§

impl<'a> !UnwindSafe for ServerOptionsCtl<'a>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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