Skip to main content

HostExecMutator

Trait HostExecMutator 

Source
pub trait HostExecMutator: Send + Sync {
    // Required method
    fn exec_host<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        host: &'life1 HostRecord,
        request: &'life2 HostExecRequest,
        cancellation: &'life3 CancellationToken,
    ) -> Pin<Box<dyn Future<Output = MutationResult<HostExecReceipt>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Product-neutral bounded host command driver.

Required Methods§

Source

fn exec_host<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, host: &'life1 HostRecord, request: &'life2 HostExecRequest, cancellation: &'life3 CancellationToken, ) -> Pin<Box<dyn Future<Output = MutationResult<HostExecReceipt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Executes one allowlisted command through a typed launcher.

Implementors§