Trait BashExecutor
Source pub trait BashExecutor: Send + Sync {
// Required methods
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
input: BashRunInput<'life1>,
) -> Pin<Box<dyn Future<Output = BashRunResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn spawn_background<'life0, 'async_trait>(
&'life0 self,
command: String,
cwd: String,
env: HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_background<'life0, 'life1, 'async_trait>(
&'life0 self,
job_id: &'life1 str,
since_byte: u64,
head_limit: usize,
) -> Pin<Box<dyn Future<Output = Result<BackgroundReadResult, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn kill_background<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
job_id: &'life1 str,
signal: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn close_session<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}