pub struct PathProperties {
    pub latency_ns: u64,
    pub packet_loss: f32,
}Expand description
Network characteristics for a path between two nodes.
Fields§
§latency_ns: u64Latency in nanoseconds.
packet_loss: f32Packet loss as fraction.
Trait Implementations§
Source§impl Add for PathProperties
 
impl Add for PathProperties
Source§impl Clone for PathProperties
 
impl Clone for PathProperties
Source§fn clone(&self) -> PathProperties
 
fn clone(&self) -> PathProperties
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 PathProperties
 
impl Debug for PathProperties
Source§impl Default for PathProperties
 
impl Default for PathProperties
Source§fn default() -> PathProperties
 
fn default() -> PathProperties
Returns the “default value” for a type. Read more
Source§impl From<&ShadowEdge> for PathProperties
 
impl From<&ShadowEdge> for PathProperties
Source§fn from(e: &ShadowEdge) -> Self
 
fn from(e: &ShadowEdge) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PathProperties
 
impl PartialEq for PathProperties
Source§impl PartialOrd for PathProperties
 
impl PartialOrd for PathProperties
impl Copy for PathProperties
Auto Trait Implementations§
impl Freeze for PathProperties
impl RefUnwindSafe for PathProperties
impl Send for PathProperties
impl Sync for PathProperties
impl Unpin for PathProperties
impl UnwindSafe for PathProperties
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,
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