Skip to main content

PodTransport

Trait PodTransport 

Source
pub trait PodTransport: Send + Sync {
    // Required methods
    fn exec_capture<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ssh_target: &'life1 str,
        command: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn write_file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        ssh_target: &'life1 str,
        remote_path: &'life2 str,
        contents: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn exec_stream<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ssh_target: &'life1 str,
        command: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn exec_capture<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ssh_target: &'life1 str, command: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn write_file<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, ssh_target: &'life1 str, remote_path: &'life2 str, contents: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn exec_stream<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ssh_target: &'life1 str, command: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§