Struct tmux_interface::commands::buffers::set_buffer::SetBuffer
source · pub struct SetBuffer<'a> {
pub append: bool,
pub send_to_clipboard: bool,
pub buffer_name: Option<Cow<'a, str>>,
pub target_client: Option<Cow<'a, str>>,
pub new_buffer_name: Option<Cow<'a, str>>,
pub data: Option<Cow<'a, str>>,
}
Expand description
Set the contents of the specified buffer to data.
§Manual
tmux ^3.2:
set-buffer [-aw] [-b buffer-name] [-t target-client] [-n new-buffer-name] data
(alias: setb)
tmux ^2.0:
set-buffer [-a] [-b buffer-name] [-n new-buffer-name] data
(alias: setb)
tmux ^1.5:
set-buffer [-b buffer-index] data
(alias: setb)
tmux ^0.8:
set-buffer [-b buffer-index] [-t target-session] data
(alias: setb)
Fields§
§append: bool
[-a]
send_to_clipboard: bool
[-w]
buffer_name: Option<Cow<'a, str>>
[-b buffer-name]
target_client: Option<Cow<'a, str>>
[-t target-client]
new_buffer_name: Option<Cow<'a, str>>
[-n new-buffer-name]
data: Option<Cow<'a, str>>
data
Implementations§
source§impl<'a> SetBuffer<'a>
impl<'a> SetBuffer<'a>
pub fn new() -> Self
sourcepub fn send_to_clipboard(self) -> Self
pub fn send_to_clipboard(self) -> Self
[-w]
sourcepub fn buffer_name<S: Into<Cow<'a, str>>>(self, buffer_name: S) -> Self
pub fn buffer_name<S: Into<Cow<'a, str>>>(self, buffer_name: S) -> Self
[-b buffer-name]
sourcepub fn target_client<S: Into<Cow<'a, str>>>(self, target_client: S) -> Self
pub fn target_client<S: Into<Cow<'a, str>>>(self, target_client: S) -> Self
[-t target-client]
sourcepub fn new_buffer_name<S: Into<Cow<'a, str>>>(self, new_buffer_name: S) -> Self
pub fn new_buffer_name<S: Into<Cow<'a, str>>>(self, new_buffer_name: S) -> Self
[-n new-buffer-name]
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> From<SetBuffer<'a>> for TmuxCommand<'a>
impl<'a> From<SetBuffer<'a>> for TmuxCommand<'a>
source§impl<'a> Ord for SetBuffer<'a>
impl<'a> Ord for SetBuffer<'a>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq for SetBuffer<'a>
impl<'a> PartialEq for SetBuffer<'a>
source§impl<'a> PartialOrd for SetBuffer<'a>
impl<'a> PartialOrd for SetBuffer<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moreimpl<'a> Eq for SetBuffer<'a>
impl<'a> StructuralPartialEq for SetBuffer<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SetBuffer<'a>
impl<'a> Send for SetBuffer<'a>
impl<'a> Sync for SetBuffer<'a>
impl<'a> Unpin for SetBuffer<'a>
impl<'a> UnwindSafe for SetBuffer<'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