Skip to main content

RunHandle

Trait RunHandle 

Source
pub trait RunHandle: Send {
    // Required methods
    fn record_step<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        node_id: &'life1 str,
        node_type: &'life2 str,
        status: StepStatus,
        exit_reason: Option<&'life3 str>,
        detail: Value,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn mark_filtered<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        node_id: &'life1 str,
        node_type: &'life2 str,
        reason: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn end<'life0, 'async_trait>(
        self: Box<Self>,
        status: RunStatus,
        exit_reason: Option<&'life0 str>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Open run being recorded.

Required Methods§

Source

fn record_step<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 mut self, node_id: &'life1 str, node_type: &'life2 str, status: StepStatus, exit_reason: Option<&'life3 str>, detail: Value, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Record one step outcome.

Source

fn mark_filtered<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 mut self, node_id: &'life1 str, node_type: &'life2 str, reason: &'life3 str, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Record routine negative evidence without materializing a full run.

Source

fn end<'life0, 'async_trait>( self: Box<Self>, status: RunStatus, exit_reason: Option<&'life0 str>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Close the run.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§