pub struct Cost(/* private fields */);
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§
source§impl PartialEq for Cost
impl PartialEq for Cost
source§impl PartialOrd for Cost
impl PartialOrd for Cost
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 Freeze for Cost
impl RefUnwindSafe for Cost
impl Send for Cost
impl Sync for Cost
impl Unpin for Cost
impl UnwindSafe for Cost
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