pub struct RefreshClient<'a> {
Show 13 fields pub tracking_cursor: bool, pub down: bool, pub request_clipboard: bool, pub left: bool, pub right: bool, pub status_line: bool, pub up: bool, pub allow_actions: Option<AllowActions<'a>>, pub subscribe: Option<Subscribe<'a>>, pub size: Option<(usize, usize)>, pub flags: Option<ClientFlags>, pub target_client: Option<Cow<'a, str>>, pub adjustment: Option<usize>,
}
Expand description

Structure for refreshing the current client

§Manual

tmux 3.3:

refresh-client [-cDLRSU] [-A pane:state] [-B name:what:format] [-C XxY] [-f flags]
[-l [target-pane]] [-t target-client] [adjustment] (alias: refresh)

tmux 3.2:

refresh-client [-cDlLRSU] [-A pane:state] [-B name:what:format] [-C XxY] [-f flags] [-t target-client] [adjustment]
(alias: refresh)

tmux 3.0:

refresh-client [-cDlLRSU] [-C XxY] [-F flags] [-t target-client] [adjustment]
(alias: refresh)

tmux 2.9a:

refresh-client [-cDlLRSU] [-C width,height] [-F flags] [-t target-client] [adjustment]
(alias: refresh)

tmux 2.4:

refresh-client [-C width,height] [-S] [-t target-client]
(alias: refresh)

tmux 1.6:

refresh-client [-S] [-t target-client]
(alias: refresh)

tmux 0.8:

refresh-client [-t target-client]
(alias: refresh)

Fields§

§tracking_cursor: bool

[-c] - return to tracking the cursor automatically

§down: bool

[-D] - move the visible part of a window down by adjustment rows

§request_clipboard: bool

[-l] - request the clipboard from the client using the xterm(1) escape sequence

§left: bool

[-L] - move the visible part of a window left by adjustment columns

§right: bool

[-R] - move the visible part of a window right by adjustment columns

§status_line: bool

[-S] - only update the client’s status line

§up: bool

[-U] - move the visible part of a window up by adjustment rows

§allow_actions: Option<AllowActions<'a>>

[-A pane:state] - allows a control mode client to trigger actions on a pane

§subscribe: Option<Subscribe<'a>>

[-B name:what:format]

§size: Option<(usize, usize)>

[-C X,Y] - set the width and height of a control client [-C XxY] - set the width and height of a control client

§flags: Option<ClientFlags>

[-f flags] - sets a comma-separated list of client flags

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

[-t target-client] - specify the client

§adjustment: Option<usize>

[adjustment] - moves the visible part up/down left/right by adjustment rows/columns

Implementations§

source§

impl<'a> RefreshClient<'a>

source

pub fn new() -> Self

source

pub fn tracking_cursor(self) -> Self

[-c] - return to tracking the cursor automatically

source

pub fn down(self) -> Self

[-D] - move the visible part of a window down by adjustment rows

source

pub fn request_clipboard(self) -> Self

[-l] - request the clipboard from the client using the xterm(1) escape sequence

source

pub fn left(self) -> Self

[-L] - move the visible part of a window left by adjustment columns

source

pub fn right(self) -> Self

[-R] - move the visible part of a window right by adjustment columns

source

pub fn status_line(self) -> Self

[-S] - only update the client’s status line

source

pub fn up(self) -> Self

[-U] - move the visible part of a window up by adjustment rows

source

pub fn allow_actions<S: Into<Cow<'a, str>>>(self, pane: S, state: State) -> Self

[-A pane:state] - allows a control mode client to trigger actions on a pane

source

pub fn subscribe<S: Into<Cow<'a, str>>>( self, name: S, what: Option<usize>, format: Option<usize> ) -> Self

[-B name:what:format]

source

pub fn size(self, size: (usize, usize)) -> Self

[-C X,Y] - set the width and height of a control client [-C XxY] - set the width and height of a control client [-C @id:XxY] - set the width and height of a control client

source

pub fn flags(self, flags: ClientFlags) -> Self

[-f flags] - sets a comma-separated list of client flags

source

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

[-t target-client] - specify the client

source

pub fn adjustment(self, adjustment: usize) -> Self

[adjustment] - moves the visible part up/down left/right by adjustment rows/columns

source

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

Trait Implementations§

source§

impl<'a> Clone for RefreshClient<'a>

source§

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

source§

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

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

impl<'a> Default for RefreshClient<'a>

source§

fn default() -> RefreshClient<'a>

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

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

source§

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

Converts to this type from the input type.
source§

impl<'a> Hash for RefreshClient<'a>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a> Ord for RefreshClient<'a>

source§

fn cmp(&self, other: &RefreshClient<'a>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl<'a> PartialEq for RefreshClient<'a>

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> PartialOrd for RefreshClient<'a>

source§

fn partial_cmp(&self, other: &RefreshClient<'a>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'a> Eq for RefreshClient<'a>

source§

impl<'a> StructuralPartialEq for RefreshClient<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for RefreshClient<'a>

§

impl<'a> Send for RefreshClient<'a>

§

impl<'a> Sync for RefreshClient<'a>

§

impl<'a> Unpin for RefreshClient<'a>

§

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