#[repr(u32)]pub enum Verbosity {
Min = 1,
Med = 2,
Max = 3,
}Expand description
An enum representing the level of verbosity for metrics/thread_spans/spans.
Variants§
Min = 1
The “min” level.
Designates vey low details events, meaning overall lower frequency.
Med = 2
The “med” level.
Designates medium level level of details, meaning overall medium frequency
Max = 3
The “Max” level.
Designates very high frequency events.
Implementations§
Source§impl Verbosity
impl Verbosity
Sourcepub fn to_level_filter(self) -> LodFilter
pub fn to_level_filter(self) -> LodFilter
Converts the Lod to the equivalent LodFilter.
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Returns the string representation of the Lod.
This returns the same string as the fmt::Display implementation.
Sourcepub fn iter() -> impl Iterator<Item = Verbosity>
pub fn iter() -> impl Iterator<Item = Verbosity>
Iterate through all supported logging levels.
The order of iteration is from more severe to less severe log messages.
§Examples
use micromegas_tracing::prelude::*;
let mut lods = Verbosity::iter();
assert_eq!(Some(Verbosity::Min), lods.next());
assert_eq!(Some(Verbosity::Max), lods.last());Trait Implementations§
Source§impl Ord for Verbosity
impl Ord for Verbosity
Source§impl PartialOrd<LodFilter> for Verbosity
impl PartialOrd<LodFilter> for Verbosity
Source§impl PartialOrd<Verbosity> for LodFilter
impl PartialOrd<Verbosity> for LodFilter
Source§impl PartialOrd for Verbosity
impl PartialOrd for Verbosity
impl Copy for Verbosity
impl Eq for Verbosity
impl StructuralPartialEq for Verbosity
Auto Trait Implementations§
impl Freeze for Verbosity
impl RefUnwindSafe for Verbosity
impl Send for Verbosity
impl Sync for Verbosity
impl Unpin for Verbosity
impl UnwindSafe for Verbosity
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.