Skip to main content

CloudDispatchPort

Trait CloudDispatchPort 

Source
pub trait CloudDispatchPort: Send + Sync {
    // Required methods
    fn submit_task<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        repo: &'life1 str,
        branch: &'life2 str,
        prompt: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<CloudTaskHandle>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn poll_status<'life0, 'life1, 'async_trait>(
        &'life0 self,
        handle: &'life1 CloudTaskHandle,
    ) -> Pin<Box<dyn Future<Output = Result<CloudTaskStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn harvest<'life0, 'life1, 'async_trait>(
        &'life0 self,
        handle: &'life1 CloudTaskHandle,
    ) -> Pin<Box<dyn Future<Output = Result<CloudResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Outbound port for harness-agnostic cloud agent dispatch.

Lifecycle: submit_task enqueues work and returns a handle; poll_status observes progress; harvest collects the PR outcome once status is CloudTaskStatus::Succeeded.

Required Methods§

Source

fn submit_task<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, repo: &'life1 str, branch: &'life2 str, prompt: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<CloudTaskHandle>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Submit a remote task against repo on base ref branch with prompt.

Source

fn poll_status<'life0, 'life1, 'async_trait>( &'life0 self, handle: &'life1 CloudTaskHandle, ) -> Pin<Box<dyn Future<Output = Result<CloudTaskStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Poll the current status for handle.

Source

fn harvest<'life0, 'life1, 'async_trait>( &'life0 self, handle: &'life1 CloudTaskHandle, ) -> Pin<Box<dyn Future<Output = Result<CloudResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Harvest the normalized result for a succeeded task.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§