pub struct CommandTmuxClient { /* private fields */ }Implementations§
Source§impl CommandTmuxClient
impl CommandTmuxClient
pub fn new() -> Self
pub fn with_binary(self, binary: impl Into<PathBuf>) -> Self
pub fn with_socket_name(self, socket_name: impl Into<String>) -> Self
pub fn with_config_file(self, config_file: impl Into<PathBuf>) -> Self
pub fn with_inside_tmux(self, inside_tmux: bool) -> Self
Trait Implementations§
Source§impl Clone for CommandTmuxClient
impl Clone for CommandTmuxClient
Source§fn clone(&self) -> CommandTmuxClient
fn clone(&self) -> CommandTmuxClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandTmuxClient
impl Debug for CommandTmuxClient
Source§impl Default for CommandTmuxClient
impl Default for CommandTmuxClient
Source§impl TmuxClient for CommandTmuxClient
impl TmuxClient for CommandTmuxClient
fn capabilities(&self) -> Result<TmuxCapabilities, TmuxError>
fn current_context(&self) -> Result<TmuxContext, TmuxError>
fn list_sessions(&self) -> Result<Vec<TmuxSession>, TmuxError>
fn list_windows(&self) -> Result<Vec<TmuxWindow>, TmuxError>
fn list_panes(&self, target: Option<&str>) -> Result<Vec<TmuxPane>, TmuxError>
fn capture_pane(&self, target: &str) -> Result<String, TmuxError>
fn snapshot(&self, query_windows: bool) -> Result<TmuxSnapshot, TmuxError>
fn ensure_session( &self, session_name: &str, directory: &Path, ) -> Result<(), TmuxError>
fn switch_or_attach_session(&self, session_name: &str) -> Result<(), TmuxError>
fn rename_session( &self, session_name: &str, new_name: &str, ) -> Result<(), TmuxError>
fn create_or_switch_session( &self, session_name: &str, directory: &Path, ) -> Result<(), TmuxError>
fn kill_session(&self, session_name: &str) -> Result<(), TmuxError>
fn open_popup( &self, command: &PopupCommand, options: &PopupOptions, ) -> Result<(), TmuxError>
fn select_pane(&self, target: &str) -> Result<(), TmuxError>
fn resize_pane_width(&self, target: &str, width: u16) -> Result<(), TmuxError>
fn status_line_count(&self) -> Result<usize, TmuxError>
fn set_status_line_count(&self, count: usize) -> Result<(), TmuxError>
fn clear_status_line(&self, line: usize) -> Result<(), TmuxError>
fn update_status_line( &self, line: usize, content: &str, ) -> Result<(), TmuxError>
fn set_hook(&self, hook: &str, command: &str) -> Result<(), TmuxError>
fn clear_hook(&self, hook: &str) -> Result<(), TmuxError>
fn refresh_client_status(&self) -> Result<(), TmuxError>
Auto Trait Implementations§
impl Freeze for CommandTmuxClient
impl RefUnwindSafe for CommandTmuxClient
impl Send for CommandTmuxClient
impl Sync for CommandTmuxClient
impl Unpin for CommandTmuxClient
impl UnsafeUnpin for CommandTmuxClient
impl UnwindSafe for CommandTmuxClient
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