NetworkObservations

Trait NetworkObservations 

Source
pub trait NetworkObservations {
    // Required method
    fn update(&self, peer: &PeerId, result: Result<Duration, ()>);
}
Expand description

Trait representing a reporter of network immediate peer testing observations.

Required Methods§

Source

fn update(&self, peer: &PeerId, result: Result<Duration, ()>)

Implementations on Foreign Types§

Source§

impl NetworkObservations for HoprNetwork

Source§

fn update(&self, peer: &PeerId, result: Result<Duration, ()>)

Implementors§