Skip to main content

ScriptRunner

Trait ScriptRunner 

Source
pub(crate) trait ScriptRunner: Send + Sync {
    // Required method
    fn run<'life0, 'life1, 'async_trait>(
        &'life0 self,
        spec: CommandSpec,
        payload: &'life1 [u8],
        timeout: Duration,
    ) -> Pin<Box<dyn Future<Output = Result<ScriptExit, InvokeError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Runs a CommandSpec and reports how it exited.

Required Methods§

Source

fn run<'life0, 'life1, 'async_trait>( &'life0 self, spec: CommandSpec, payload: &'life1 [u8], timeout: Duration, ) -> Pin<Box<dyn Future<Output = Result<ScriptExit, InvokeError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Runs spec with payload on stdin and returns how it exited.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§