pub enum MetricEvent {
FlowCreated,
FlowEvicted,
FlowShed,
DatagramIn(usize),
DatagramOut(usize),
DatagramDropped(DropReason),
}Expand description
Metric events the core asks the shell to record. The shell owns the
incr!/count!/gauge!/time! macros (lib/src/metrics/).
Variants§
FlowCreated
A new flow was admitted (udp.flows.created, udp.active_flows += 1).
FlowEvicted
A flow was torn down by idle/teardown/drain (udp.flows.evicted,
udp.active_flows -= 1).
FlowShed
A new flow was shed at the cap (udp.flows.shed).
DatagramIn(usize)
A client→backend datagram was forwarded (udp.datagrams.in,
udp.bytes.in). Carries the payload byte count (excludes any PPv2
prefix the core adds).
DatagramOut(usize)
A backend→client datagram was returned (udp.datagrams.out,
udp.bytes.out).
DatagramDropped(DropReason)
A datagram was dropped, by reason (udp.datagrams.dropped).
Trait Implementations§
Source§impl Clone for MetricEvent
impl Clone for MetricEvent
Source§fn clone(&self) -> MetricEvent
fn clone(&self) -> MetricEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MetricEvent
Source§impl Debug for MetricEvent
impl Debug for MetricEvent
impl Eq for MetricEvent
Source§impl PartialEq for MetricEvent
impl PartialEq for MetricEvent
Source§fn eq(&self, other: &MetricEvent) -> bool
fn eq(&self, other: &MetricEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetricEvent
Auto Trait Implementations§
impl Freeze for MetricEvent
impl RefUnwindSafe for MetricEvent
impl Send for MetricEvent
impl Sync for MetricEvent
impl Unpin for MetricEvent
impl UnsafeUnpin for MetricEvent
impl UnwindSafe for MetricEvent
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.