pub enum WireLevelFilter {
Off,
Error,
Warn,
Info,
Debug,
Trace,
}Expand description
Wire counterpart to tracing::level_filters::LevelFilter. Includes
Off because the cache-side global level can be fully disabled —
distinct from WireLevel (which is the per-span/event level and
therefore can’t be “off”).
Variants§
Implementations§
Source§impl WireLevelFilter
impl WireLevelFilter
pub fn from_tracing(filter: LevelFilter) -> Self
pub fn to_tracing(self) -> LevelFilter
Trait Implementations§
Source§impl Clone for WireLevelFilter
impl Clone for WireLevelFilter
Source§fn clone(&self) -> WireLevelFilter
fn clone(&self) -> WireLevelFilter
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 moreSource§impl Debug for WireLevelFilter
impl Debug for WireLevelFilter
Source§impl<'de> Deserialize<'de> for WireLevelFilter
impl<'de> Deserialize<'de> for WireLevelFilter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WireLevelFilter
impl PartialEq for WireLevelFilter
Source§fn eq(&self, other: &WireLevelFilter) -> bool
fn eq(&self, other: &WireLevelFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WireLevelFilter
impl Serialize for WireLevelFilter
impl Copy for WireLevelFilter
impl Eq for WireLevelFilter
impl StructuralPartialEq for WireLevelFilter
Auto Trait Implementations§
impl Freeze for WireLevelFilter
impl RefUnwindSafe for WireLevelFilter
impl Send for WireLevelFilter
impl Sync for WireLevelFilter
impl Unpin for WireLevelFilter
impl UnsafeUnpin for WireLevelFilter
impl UnwindSafe for WireLevelFilter
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