Skip to main content

WorkspaceCommandExecutor

Trait WorkspaceCommandExecutor 

Source
pub trait WorkspaceCommandExecutor:
    Send
    + Sync
    + Debug {
    // Required methods
    fn execute<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        tenant_id: &'life1 str,
        workspace_id: &'life2 str,
        command_id: &'life3 str,
        command: &'life4 CommandSpec,
    ) -> Pin<Box<dyn Future<Output = Result<CmdOutput>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn cancel<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        tenant_id: &'life1 str,
        command_id: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn execute<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, tenant_id: &'life1 str, workspace_id: &'life2 str, command_id: &'life3 str, command: &'life4 CommandSpec, ) -> Pin<Box<dyn Future<Output = Result<CmdOutput>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn cancel<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, tenant_id: &'life1 str, command_id: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§