Skip to main content

CompletionObserver

Trait CompletionObserver 

Source
pub(in http) trait CompletionObserver: Send + Sync {
    // Required methods
    fn accepted<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        job_id: Uuid,
        snapshot: Option<&'life1 ProgressSnapshot>,
        node_public_key: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn finalized<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        job_id: Uuid,
        strategy: &'life1 str,
        node_public_key: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn accepted<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, job_id: Uuid, snapshot: Option<&'life1 ProgressSnapshot>, node_public_key: &'life2 str, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn finalized<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, job_id: Uuid, strategy: &'life1 str, node_public_key: &'life2 str, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§