pub struct PathSensor { /* private fields */ }Expand description
Rolling estimator over the peer’s path observations.
Implementations§
Source§impl PathSensor
impl PathSensor
Sourcepub fn observe(&mut self, ttl: u8, ecn: u8, hop_count: u8)
pub fn observe(&mut self, ttl: u8, ecn: u8, hop_count: u8)
Record one (hop_count, ecn) observation echoed by the peer.
Sourcepub fn path_shift(&self) -> f32
pub fn path_shift(&self) -> f32
Path-shift signal, 0..=1: high just after a router-level path change.
Trait Implementations§
Source§impl Debug for PathSensor
impl Debug for PathSensor
Source§impl Default for PathSensor
impl Default for PathSensor
Source§fn default() -> PathSensor
fn default() -> PathSensor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PathSensor
impl RefUnwindSafe for PathSensor
impl Send for PathSensor
impl Sync for PathSensor
impl Unpin for PathSensor
impl UnsafeUnpin for PathSensor
impl UnwindSafe for PathSensor
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