pub trait MuxBackend: Send + Sync {
// Required methods
fn create_session<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, MuxError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: '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 'life0: 'async_trait,
'life1: 'async_trait,
Self: '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 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: '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 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn list_sessions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Session>, MuxError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: '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 'life0: 'async_trait,
'life1: 'async_trait,
Self: '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 'life0: 'async_trait,
'life1: 'async_trait,
Self: '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 'life0: 'async_trait,
'life1: 'async_trait,
Self: '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 'life0: 'async_trait,
'life1: 'async_trait,
Self: '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 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn attach_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn detach_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}
Expand description
The core trait that all multiplexer backends must implement
Required Methods§
Sourcefn create_session<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, MuxError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Create a new session with the given name
Sourcefn 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
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Create a new pane in the specified session
Sourcefn 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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Send keystrokes to a specific pane
Sourcefn capture_pane<'life0, 'life1, 'async_trait>(
&'life0 self,
pane_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, MuxError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Capture the current contents of a pane
Sourcefn list_sessions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Session>, MuxError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn list_sessions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Session>, MuxError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
List all sessions
Sourcefn kill_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Kill a session and all its panes
Sourcefn kill_pane<'life0, 'life1, 'async_trait>(
&'life0 self,
pane_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Kill a specific pane
Sourcefn 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
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Resize a pane
Sourcefn select_pane<'life0, 'life1, 'async_trait>(
&'life0 self,
pane_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), MuxError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Select (focus) a pane
Sourcefn 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
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
List all panes in a session