Skip to main content

ExecAgentConnection

Trait ExecAgentConnection 

Source
pub trait ExecAgentConnection: Send + Sync {
    // Required methods
    fn exec_start<'life0, 'async_trait>(
        &'life0 self,
        params: ExecStartParams,
    ) -> Pin<Box<dyn Future<Output = Result<ExecStartResult, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn exec_resize<'life0, 'life1, 'async_trait>(
        &'life0 self,
        exec_id: &'life1 str,
        width: u32,
        height: u32,
    ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for exec agent communication.

Abstracts communication with the guest VM agent for exec operations.

Required Methods§

Source

fn exec_start<'life0, 'async_trait>( &'life0 self, params: ExecStartParams, ) -> Pin<Box<dyn Future<Output = Result<ExecStartResult, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Starts an exec instance in the guest VM.

Source

fn exec_resize<'life0, 'life1, 'async_trait>( &'life0 self, exec_id: &'life1 str, width: u32, height: u32, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Resizes an exec instance’s TTY.

Implementors§