pub enum Latency {
Request,
CrossRegion,
CrossZone,
Server,
}Expand description
Channels used to mutate histogram observations.
§Examples
use dynomite::stats::Latency;
assert_ne!(Latency::Request, Latency::Server);
assert_eq!(Latency::Request, Latency::Request);
// The variant set is small and copy-able.
let copied = Latency::CrossRegion;
assert_eq!(copied, Latency::CrossRegion);Variants§
Request
Top-level request latency.
CrossRegion
Cross-region peer round-trip time.
CrossZone
Cross-zone peer latency.
Server
Backing-server response latency.
Trait Implementations§
impl Copy for Latency
impl Eq for Latency
impl StructuralPartialEq for Latency
Auto Trait Implementations§
impl Freeze for Latency
impl RefUnwindSafe for Latency
impl Send for Latency
impl Sync for Latency
impl Unpin for Latency
impl UnsafeUnpin for Latency
impl UnwindSafe for Latency
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.