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> PartialOrd for SetBuffer<'a>
impl<'a> PartialOrd for SetBuffer<'a>
impl<'a> Eq for SetBuffer<'a>
impl<'a> StructuralPartialEq for SetBuffer<'a>
Auto Trait Implementations§
impl<'a> Freeze for SetBuffer<'a>
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