Struct Cost

struct Cost(_)

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.

Implementations

impl Clone for Cost

fn clone(self: &Self) -> Cost

impl Copy for Cost

impl Debug for Cost

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

impl Freeze for Cost

impl PartialEq for Cost

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

impl PartialOrd for Cost

fn partial_cmp(self: &Self, other: &Cost) -> $crate::option::Option<$crate::cmp::Ordering>

impl RefUnwindSafe for Cost

impl Send for Cost

impl StructuralPartialEq for Cost

impl Sync for Cost

impl Unpin for Cost

impl UnwindSafe for Cost

impl<T> Any for Cost

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Cost

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Cost

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

impl<T> CloneToUninit for Cost

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

impl<T> From for Cost

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for Cost

impl<T> ToOwned for Cost

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> WithSubscriber for Cost

impl<T, U> Into for Cost

fn into(self: 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 for Cost

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Cost

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