Skip to main content

MeasurablePeer

Trait MeasurablePeer 

pub trait MeasurablePeer {
    // Required methods
    fn peer(&self) -> &OffchainPublicKey;
    fn rtt(&self) -> Duration;
}
Expand description

Measurable neighbor peer attributes.

Required Methods§

fn peer(&self) -> &OffchainPublicKey

Returns the measured peer public key.

fn rtt(&self) -> Duration

Returns the measured round-trip time.

Implementors§