pub struct PathAsymmetry { /* private fields */ }Expand description
Forward-vs-reverse path asymmetry. The forward hop count is what the peer reports about our packets; the reverse is what we observe about the peer’s.
Implementations§
Source§impl PathAsymmetry
impl PathAsymmetry
pub fn new() -> Self
Sourcepub fn observe_forward(&mut self, hops: u8)
pub fn observe_forward(&mut self, hops: u8)
Record the forward hop count (from the peer’s Path frame about us).
Sourcepub fn observe_reverse(&mut self, hops: u8)
pub fn observe_reverse(&mut self, hops: u8)
Record the reverse hop count (from our received-TTL cmsg about the peer).
pub fn forward(&self) -> Option<u8>
pub fn reverse(&self) -> Option<u8>
Trait Implementations§
Source§impl Clone for PathAsymmetry
impl Clone for PathAsymmetry
Source§fn clone(&self) -> PathAsymmetry
fn clone(&self) -> PathAsymmetry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PathAsymmetry
Source§impl Debug for PathAsymmetry
impl Debug for PathAsymmetry
Source§impl Default for PathAsymmetry
impl Default for PathAsymmetry
Source§fn default() -> PathAsymmetry
fn default() -> PathAsymmetry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PathAsymmetry
impl RefUnwindSafe for PathAsymmetry
impl Send for PathAsymmetry
impl Sync for PathAsymmetry
impl Unpin for PathAsymmetry
impl UnsafeUnpin for PathAsymmetry
impl UnwindSafe for PathAsymmetry
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