pub trait ExecCapable: Send + Sync {
// Required method
fn exec<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: &'life1 str,
command: &'life2 [String],
) -> Pin<Box<dyn Future<Output = AppResult<ExecResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Implemented by backends that can execute a command inside a running workload.
Required Methods§
Sourcefn exec<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: &'life1 str,
command: &'life2 [String],
) -> Pin<Box<dyn Future<Output = AppResult<ExecResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn exec<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: &'life1 str,
command: &'life2 [String],
) -> Pin<Box<dyn Future<Output = AppResult<ExecResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute command inside the workload identified by id.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".