Trait ProbeStatusUpdate

Source
pub trait ProbeStatusUpdate {
    // Required method
    fn on_finished<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        peer: &'life1 PeerId,
        result: &'life2 Result<Duration>,
    ) -> 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 on_finished<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, peer: &'life1 PeerId, result: &'life2 Result<Duration>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Update the peer status after probing

Implementors§