pub struct PathProperties {
pub latency_ns: u64,
pub packet_loss: f32,
}
Expand description
Network characteristics for a path between two nodes.
Fields§
§latency_ns: u64
Latency in nanoseconds.
packet_loss: f32
Packet 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 copy 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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