pub struct Command { /* private fields */ }Expand description
A tmux subcommand and its arguments.
The tmux executable, socket, config, and color flags are supplied by
Server, not by this value.
Implementations§
Source§impl Command
impl Command
Sourcepub fn new(subcommand: impl Into<OsString>) -> Self
pub fn new(subcommand: impl Into<OsString>) -> Self
Creates a command for a tmux subcommand such as list-sessions.
Sourcepub fn sensitive_arg(self, argument: impl Into<OsString>) -> Self
pub fn sensitive_arg(self, argument: impl Into<OsString>) -> Self
Adds an argument whose value is omitted from diagnostics.
Sourcepub fn input(self, input: impl Into<TmuxText>) -> Self
pub fn input(self, input: impl Into<TmuxText>) -> Self
Supplies byte-preserving standard input to the tmux process.
Sourcepub fn sensitive_input(self, input: impl Into<TmuxText>) -> Self
pub fn sensitive_input(self, input: impl Into<TmuxText>) -> Self
Supplies standard input while marking its content sensitive.
Sourcepub fn subcommand(&self) -> &OsStr
pub fn subcommand(&self) -> &OsStr
Returns the tmux subcommand.
Sourcepub fn arguments(&self) -> impl ExactSizeIterator<Item = &OsStr>
pub fn arguments(&self) -> impl ExactSizeIterator<Item = &OsStr>
Returns the arguments in execution order.
Sourcepub fn summary(&self) -> CommandSummary
pub fn summary(&self) -> CommandSummary
Creates a redacted diagnostic description.
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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