pub struct LoadMetric(pub f64);Expand description
A comparable predicted completion cost for P2C selection.
Lower values are better. The value is measured in seconds from the moment the metric was read and includes the endpoint’s expected RTT.
Tuple Fields§
§0: f64Implementations§
Trait Implementations§
Source§impl Clone for LoadMetric
impl Clone for LoadMetric
Source§fn clone(&self) -> LoadMetric
fn clone(&self) -> LoadMetric
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 LoadMetric
Source§impl Debug for LoadMetric
impl Debug for LoadMetric
Source§impl Default for LoadMetric
impl Default for LoadMetric
Source§fn default() -> LoadMetric
fn default() -> LoadMetric
Returns the “default value” for a type. Read more
Source§impl PartialEq for LoadMetric
impl PartialEq for LoadMetric
Source§impl PartialOrd for LoadMetric
impl PartialOrd for LoadMetric
impl StructuralPartialEq for LoadMetric
Auto Trait Implementations§
impl Freeze for LoadMetric
impl RefUnwindSafe for LoadMetric
impl Send for LoadMetric
impl Sync for LoadMetric
impl Unpin for LoadMetric
impl UnsafeUnpin for LoadMetric
impl UnwindSafe for LoadMetric
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