Trait ExecApi

Source
pub trait ExecApi: Send + Sync {
    // Required methods
    fn container_exec_libpod(
        &self,
        name: &str,
        control: Option<ContainerExecRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
    fn exec_inspect_libpod(
        &self,
        id: &str,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
    fn exec_resize_libpod(
        &self,
        id: &str,
        h: Option<i32>,
        w: Option<i32>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
    fn exec_start_libpod(
        &self,
        id: &str,
        control: Option<ExecStartLibpodRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
}

Required Methods§

Source

fn container_exec_libpod( &self, name: &str, control: Option<ContainerExecRequest>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Source

fn exec_inspect_libpod( &self, id: &str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Source

fn exec_resize_libpod( &self, id: &str, h: Option<i32>, w: Option<i32>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Source

fn exec_start_libpod( &self, id: &str, control: Option<ExecStartLibpodRequest>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Implementors§

Source§

impl<C> ExecApi for ExecApiClient<C>
where C: Clone + Send + Sync + Connect,