pub struct MuxdBackend { /* private fields */ }
Expand description
MuxdBackend connects to the muxd daemon via WebSocket
Implementations§
Trait Implementations§
Source§impl MuxBackend for MuxdBackend
impl MuxBackend for MuxdBackend
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 MuxdBackend
impl !RefUnwindSafe for MuxdBackend
impl Send for MuxdBackend
impl Sync for MuxdBackend
impl Unpin for MuxdBackend
impl !UnwindSafe for MuxdBackend
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