Enum LatencyUnit

#[non_exhaustive]
pub enum LatencyUnit

The latency unit used to report latencies by middleware.

Variants

Seconds

Use seconds.

Millis

Use milliseconds.

Micros

Use microseconds.

Nanos

Use nanoseconds.

Trait Implementations

impl Clone for LatencyUnit

fn clone(&self) -> LatencyUnit

impl Copy for LatencyUnit

impl Debug for LatencyUnit

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

Auto Trait Implementations

impl Freeze for LatencyUnit

impl RefUnwindSafe for LatencyUnit

impl Send for LatencyUnit

impl Sync for LatencyUnit

impl Unpin for LatencyUnit

impl UnsafeUnpin for LatencyUnit

impl UnwindSafe for LatencyUnit

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for LatencyUnit

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for LatencyUnit

impl<T> PolicyExt for LatencyUnit where T: ?Sized,

fn and<P, B, E>(self, other: P) -> And<T, P>
where
    T: Sized + Policy<B, E>,
    P: Policy<B, E>,
fn or<P, B, E>(self, other: P) -> Or<T, P>
where
    T: Sized + Policy<B, E>,
    P: Policy<B, E>,

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

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

impl<T> WithSubscriber for LatencyUnit

impl<T, U> Into<U> for LatencyUnit 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 LatencyUnit where U: Into<T>,

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

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

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