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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for Cost

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for Cost

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> WithSubscriber for Cost

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>