Struct SessionOptions

Source
pub struct SessionOptions<'a> {
Show 47 fields pub activity_action: Option<Action>, pub assume_paste_time: Option<usize>, pub base_index: Option<usize>, pub bell_action: Option<Action>, pub default_command: Option<Cow<'a, str>>, pub default_shell: Option<Cow<'a, str>>, pub default_size: Option<(usize, usize)>, pub destroy_unattached: Option<DestroyUnattached>, pub detach_on_destroy: Option<DetachOnDestroy>, pub display_panes_active_colour: Option<Cow<'a, str>>, pub display_panes_colour: Option<Cow<'a, str>>, pub display_panes_time: Option<usize>, pub display_time: Option<usize>, pub history_limit: Option<usize>, pub key_table: Option<Cow<'a, str>>, pub lock_after_time: Option<usize>, pub lock_command: Option<Cow<'a, str>>, pub message_command_style: Option<Cow<'a, str>>, pub message_line: Option<MessageLine>, pub message_style: Option<Cow<'a, str>>, pub mouse: Option<Switch>, pub prefix: Option<Cow<'a, str>>, pub prefix2: Option<Cow<'a, str>>, pub renumber_windows: Option<Switch>, pub repeat_time: Option<usize>, pub set_titles: Option<Switch>, pub set_titles_string: Option<Cow<'a, str>>, pub silence_action: Option<Action>, pub status: Option<Status>, pub status_format: Option<Vec<Cow<'a, str>>>, pub status_interval: Option<usize>, pub status_justify: Option<StatusJustify>, pub status_keys: Option<StatusKeys>, pub status_left: Option<Cow<'a, str>>, pub status_left_length: Option<usize>, pub status_left_style: Option<Cow<'a, str>>, pub status_position: Option<StatusPosition>, pub status_right: Option<Cow<'a, str>>, pub status_right_length: Option<usize>, pub status_right_style: Option<Cow<'a, str>>, pub status_style: Option<Cow<'a, str>>, pub update_environment: Option<Vec<Cow<'a, str>>>, pub visual_activity: Option<Activity>, pub visual_bell: Option<Activity>, pub visual_silence: Option<Activity>, pub word_separators: Option<Cow<'a, str>>, pub user_options: HashMap<String, Option<Cow<'a, str>>>,
}

Fields§

§activity_action: Option<Action>§assume_paste_time: Option<usize>§base_index: Option<usize>§bell_action: Option<Action>§default_command: Option<Cow<'a, str>>§default_shell: Option<Cow<'a, str>>§default_size: Option<(usize, usize)>§destroy_unattached: Option<DestroyUnattached>§detach_on_destroy: Option<DetachOnDestroy>§display_panes_active_colour: Option<Cow<'a, str>>§display_panes_colour: Option<Cow<'a, str>>§display_panes_time: Option<usize>§display_time: Option<usize>§history_limit: Option<usize>§key_table: Option<Cow<'a, str>>§lock_after_time: Option<usize>§lock_command: Option<Cow<'a, str>>§message_command_style: Option<Cow<'a, str>>§message_line: Option<MessageLine>§message_style: Option<Cow<'a, str>>§mouse: Option<Switch>§prefix: Option<Cow<'a, str>>§prefix2: Option<Cow<'a, str>>§renumber_windows: Option<Switch>§repeat_time: Option<usize>§set_titles: Option<Switch>§set_titles_string: Option<Cow<'a, str>>§silence_action: Option<Action>§status: Option<Status>§status_format: Option<Vec<Cow<'a, str>>>§status_interval: Option<usize>§status_justify: Option<StatusJustify>§status_keys: Option<StatusKeys>§status_left: Option<Cow<'a, str>>§status_left_length: Option<usize>§status_left_style: Option<Cow<'a, str>>§status_position: Option<StatusPosition>§status_right: Option<Cow<'a, str>>§status_right_length: Option<usize>§status_right_style: Option<Cow<'a, str>>§status_style: Option<Cow<'a, str>>§update_environment: Option<Vec<Cow<'a, str>>>§visual_activity: Option<Activity>§visual_bell: Option<Activity>§visual_silence: Option<Activity>§word_separators: Option<Cow<'a, str>>§user_options: HashMap<String, Option<Cow<'a, str>>>

Implementations§

Source§

impl<'a> SessionOptions<'a>

Source

pub fn new() -> Self

Source

pub fn activity_action(self, activity_action: Option<Action>) -> Self

Source

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

Source

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

Source

pub fn bell_action(self, bell_action: Option<Action>) -> Self

Source

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

Source

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

Source

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

Source

pub fn destroy_unattached( self, destroy_unattached: Option<DestroyUnattached>, ) -> Self

Source

pub fn detach_on_destroy( self, detach_on_destroy: Option<DetachOnDestroy>, ) -> Self

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub fn silence_action(self, silence_action: Option<Action>) -> Self

Source

pub fn status(self, status: Option<Status>) -> Self

Source

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

Source

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

Source

pub fn status_justify(self, status_justify: Option<StatusJustify>) -> Self

Source

pub fn status_keys(self, status_keys: Option<StatusKeys>) -> Self

Source

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

Source

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

Source

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

Source

pub fn status_position(self, status_position: Option<StatusPosition>) -> Self

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub fn visual_activity(self, visual_activity: Option<Activity>) -> Self

Source

pub fn visual_bell(self, visual_bell: Option<Activity>) -> Self

Source

pub fn visual_silence(self, visual_silence: Option<Activity>) -> Self

Source

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

Trait Implementations§

Source§

impl<'a> Clone for SessionOptions<'a>

Source§

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

Source§

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

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

impl<'a> Default for SessionOptions<'a>

Source§

fn default() -> SessionOptions<'a>

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

impl<'a> Display for SessionOptions<'a>

Default

tmux show-options -g
Source§

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

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

impl<'a> FromStr for SessionOptions<'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 SessionOptions<'a>

Source§

fn eq(&self, other: &SessionOptions<'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 SessionOptions<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for SessionOptions<'a>

§

impl<'a> RefUnwindSafe for SessionOptions<'a>

§

impl<'a> Send for SessionOptions<'a>

§

impl<'a> Sync for SessionOptions<'a>

§

impl<'a> Unpin for SessionOptions<'a>

§

impl<'a> UnwindSafe for SessionOptions<'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.