Skip to main content

ExecutionGraphBridge

Trait ExecutionGraphBridge 

Source
pub trait ExecutionGraphBridge: Send + Sync {
    // Required methods
    fn run<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        thread_id: &'life1 str,
        input: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<ExecutionInvokeView, ExecutionGraphBridgeError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             Self: 'async_trait;
    fn resume<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        thread_id: &'life1 str,
        checkpoint_id: Option<&'life2 str>,
        value: Value,
    ) -> Pin<Box<dyn Future<Output = Result<ExecutionInvokeView, ExecutionGraphBridgeError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             Self: 'async_trait;
    fn replay<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        thread_id: &'life1 str,
        checkpoint_id: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = Result<(), ExecutionGraphBridgeError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             Self: 'async_trait;
    fn snapshot<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        thread_id: &'life1 str,
        checkpoint_id: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = Result<ExecutionStateView, ExecutionGraphBridgeError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             Self: 'async_trait;
    fn history<'life0, 'life1, 'async_trait>(
        &'life0 self,
        thread_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ExecutionCheckpointView>, ExecutionGraphBridgeError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}
Available on crate feature execution-server only.

Required Methods§

Source

fn run<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, thread_id: &'life1 str, input: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<ExecutionInvokeView, ExecutionGraphBridgeError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Source

fn resume<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, thread_id: &'life1 str, checkpoint_id: Option<&'life2 str>, value: Value, ) -> Pin<Box<dyn Future<Output = Result<ExecutionInvokeView, ExecutionGraphBridgeError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Source

fn replay<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, thread_id: &'life1 str, checkpoint_id: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<(), ExecutionGraphBridgeError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Source

fn snapshot<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, thread_id: &'life1 str, checkpoint_id: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<ExecutionStateView, ExecutionGraphBridgeError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Source

fn history<'life0, 'life1, 'async_trait>( &'life0 self, thread_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<ExecutionCheckpointView>, ExecutionGraphBridgeError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Implementors§