pub struct TmuxBackend;
Expand description
Tmux implementation of MuxBackend
Implementations§
Source§impl TmuxBackend
impl TmuxBackend
Trait Implementations§
Source§impl Clone for TmuxBackend
impl Clone for TmuxBackend
Source§fn clone(&self) -> TmuxBackend
fn clone(&self) -> TmuxBackend
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 Default for TmuxBackend
impl Default for TmuxBackend
Source§fn default() -> TmuxBackend
fn default() -> TmuxBackend
Returns the “default value” for a type. Read more
Source§impl MuxBackend for TmuxBackend
impl MuxBackend for TmuxBackend
Source§fn create_session<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_session<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new session with the given name
Source§fn create_pane<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
split: SplitType,
) -> Pin<Box<dyn Future<Output = Result<String, MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_pane<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
split: SplitType,
) -> Pin<Box<dyn Future<Output = Result<String, MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new pane in the specified session
Source§fn send_keys<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
pane_id: &'life1 str,
keys: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send_keys<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
pane_id: &'life1 str,
keys: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Send keystrokes to a specific pane
Source§fn capture_pane<'life0, 'life1, 'async_trait>(
&'life0 self,
pane_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn capture_pane<'life0, 'life1, 'async_trait>(
&'life0 self,
pane_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Capture the current contents of a pane
Source§fn list_sessions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Session>, MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_sessions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Session>, MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all sessions
Source§fn kill_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn kill_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Kill a session and all its panes
Source§fn kill_pane<'life0, 'life1, 'async_trait>(
&'life0 self,
pane_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn kill_pane<'life0, 'life1, 'async_trait>(
&'life0 self,
pane_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Kill a specific pane
Source§fn resize_pane<'life0, 'life1, 'async_trait>(
&'life0 self,
pane_id: &'life1 str,
size: PaneSize,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resize_pane<'life0, 'life1, 'async_trait>(
&'life0 self,
pane_id: &'life1 str,
size: PaneSize,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resize a pane
Source§fn select_pane<'life0, 'life1, 'async_trait>(
&'life0 self,
pane_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn select_pane<'life0, 'life1, 'async_trait>(
&'life0 self,
pane_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Select (focus) a pane
Source§fn list_panes<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Pane>, MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_panes<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Pane>, MuxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all panes in a session
Auto Trait Implementations§
impl Freeze for TmuxBackend
impl RefUnwindSafe for TmuxBackend
impl Send for TmuxBackend
impl Sync for TmuxBackend
impl Unpin for TmuxBackend
impl UnwindSafe for TmuxBackend
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