Struct Cost

pub struct Cost(/* private field */);

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

impl Clone for Cost

fn clone(&self) -> Self

impl Copy for Cost

impl Debug for Cost

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl PartialEq for Cost

fn eq(&self, other: &Self) -> bool

impl PartialOrd for Cost

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

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 UnsafeUnpin for Cost

impl UnwindSafe for Cost

Blanket Implementations

impl<T> Any for Cost where T: 'static + ?Sized,

impl<T> Borrow<T> for Cost where T: ?Sized,

impl<T> BorrowMut<T> for Cost where T: ?Sized,

impl<T> CloneToUninit for Cost where T: Clone,

impl<T> From<T> for Cost

impl<T> Instrument for Cost

impl<T> ToOwned for Cost where T: Clone,

impl<T> WithSubscriber for Cost

impl<T, U> Into<U> for Cost where U: From<T>,

impl<T, U> TryFrom<U> for Cost where U: Into<T>,

impl<T, U> TryInto<U> for Cost where U: TryFrom<T>,