pub struct StunMetrics {
pub requests: Counter,
pub ipv4_success: Counter,
pub ipv6_success: Counter,
pub bad_requests: Counter,
pub failures: Counter,
}
Available on crate feature
server
only.Expand description
Metrics tracked for the STUN server.
Fields§
§requests: Counter
Number of STUN requests made to the server.
ipv4_success: Counter
Number of successful ipv4 STUN requests served.
ipv6_success: Counter
Number of successful ipv6 STUN requests served.
bad_requests: Counter
Number of bad requests made to the STUN endpoint.
failures: Counter
Number of STUN requests that end in failure.
Trait Implementations§
Source§impl Debug for StunMetrics
impl Debug for StunMetrics
Source§impl Default for StunMetrics
impl Default for StunMetrics
Source§fn default() -> StunMetrics
fn default() -> StunMetrics
Returns the “default value” for a type. Read more
Source§impl Iterable for StunMetrics
impl Iterable for StunMetrics
Auto Trait Implementations§
impl !Freeze for StunMetrics
impl RefUnwindSafe for StunMetrics
impl Send for StunMetrics
impl Sync for StunMetrics
impl Unpin for StunMetrics
impl UnwindSafe for StunMetrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoIterable for Twhere
T: Iterable,
impl<T> IntoIterable for Twhere
T: Iterable,
§fn as_iterable(&self) -> &dyn Iterable
fn as_iterable(&self) -> &dyn Iterable
Returns
self
as dyn Iterable
§fn field_iter(&self) -> FieldIter<'_>
fn field_iter(&self) -> FieldIter<'_>
Returns an iterator over the fields of the struct.