Skip to main content

EnvironmentCommandRepository

Trait EnvironmentCommandRepository 

Source
pub trait EnvironmentCommandRepository:
    Send
    + Sync
    + Debug {
    // Required methods
    fn store_computer_command<'life0, 'async_trait>(
        &'life0 self,
        request: StoreComputerCommandRequest,
    ) -> Pin<Box<dyn Future<Output = Result<StoreComputerCommandOutcome>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_computer_command<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        scope: &'life1 ResourceScope,
        computer_id: &'life2 str,
        command_id: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ComputerCommandResource>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn transition_computer_command<'life0, 'async_trait>(
        &'life0 self,
        request: ComputerCommandTransition,
    ) -> Pin<Box<dyn Future<Output = Result<ComputerCommandResource>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn complete_computer_command<'life0, 'async_trait>(
        &'life0 self,
        request: CompleteComputerCommandRequest,
    ) -> Pin<Box<dyn Future<Output = Result<ComputerCommandResource>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn computer_command_output<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        scope: &'life1 ResourceScope,
        computer_id: &'life2 str,
        command_id: &'life3 str,
        after: u64,
        limit: usize,
    ) -> Pin<Box<dyn Future<Output = Result<ComputerCommandOutputPage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Command metadata and output are stored independently from the Environment aggregate snapshot. This keeps output appends O(chunks) instead of copying every resource in a tenant/project scope.

Required Methods§

Source

fn store_computer_command<'life0, 'async_trait>( &'life0 self, request: StoreComputerCommandRequest, ) -> Pin<Box<dyn Future<Output = Result<StoreComputerCommandOutcome>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_computer_command<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, scope: &'life1 ResourceScope, computer_id: &'life2 str, command_id: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<Option<ComputerCommandResource>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn transition_computer_command<'life0, 'async_trait>( &'life0 self, request: ComputerCommandTransition, ) -> Pin<Box<dyn Future<Output = Result<ComputerCommandResource>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn complete_computer_command<'life0, 'async_trait>( &'life0 self, request: CompleteComputerCommandRequest, ) -> Pin<Box<dyn Future<Output = Result<ComputerCommandResource>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn computer_command_output<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, scope: &'life1 ResourceScope, computer_id: &'life2 str, command_id: &'life3 str, after: u64, limit: usize, ) -> Pin<Box<dyn Future<Output = Result<ComputerCommandOutputPage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§