pub struct Cost(_);
Expand description
Represents the relative cost of communicating with a service.
The underlying value estimates the amount of pending work to a service: the Peak-EWMA latency estimate multiplied by the number of pending requests.
Trait Implementations
sourceimpl PartialOrd<Cost> for Cost
impl PartialOrd<Cost> for Cost
sourcefn partial_cmp(&self, other: &Cost) -> Option<Ordering>
fn partial_cmp(&self, other: &Cost) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Cost
impl StructuralPartialEq for Cost
Auto Trait Implementations
impl RefUnwindSafe for Cost
impl Send for Cost
impl Sync for Cost
impl Unpin for Cost
impl UnwindSafe for Cost
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more