pub struct TransportLinkMeasurement {
latency_average: ExponentialMovingAverage<3>,
probe_success_rate: ExponentialMovingAverage<5>,
}Expand description
A representation of a individual neighbor link measurement
Fields§
§latency_average: ExponentialMovingAverage<3>§probe_success_rate: ExponentialMovingAverage<5>Trait Implementations§
Source§impl Clone for TransportLinkMeasurement
impl Clone for TransportLinkMeasurement
Source§fn clone(&self) -> TransportLinkMeasurement
fn clone(&self) -> TransportLinkMeasurement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransportLinkMeasurement
impl Debug for TransportLinkMeasurement
Source§impl Default for TransportLinkMeasurement
impl Default for TransportLinkMeasurement
Source§fn default() -> TransportLinkMeasurement
fn default() -> TransportLinkMeasurement
Returns the “default value” for a type. Read more
Source§impl EdgeLinkObservable for TransportLinkMeasurement
impl EdgeLinkObservable for TransportLinkMeasurement
Source§fn record(&mut self, measurement: EdgeTransportMeasurement)
fn record(&mut self, measurement: EdgeTransportMeasurement)
Records a new result of the probe over this path segment.
Source§fn average_latency(&self) -> Option<Duration>
fn average_latency(&self) -> Option<Duration>
Returns average latency observed for the measured peer.
Source§fn average_probe_rate(&self) -> f64
fn average_probe_rate(&self) -> f64
A value representing the average success rate of probes. Read more
Source§impl PartialEq for TransportLinkMeasurement
impl PartialEq for TransportLinkMeasurement
impl Copy for TransportLinkMeasurement
impl StructuralPartialEq for TransportLinkMeasurement
Auto Trait Implementations§
impl Freeze for TransportLinkMeasurement
impl RefUnwindSafe for TransportLinkMeasurement
impl Send for TransportLinkMeasurement
impl Sync for TransportLinkMeasurement
impl Unpin for TransportLinkMeasurement
impl UnwindSafe for TransportLinkMeasurement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more