Struct tugger_common::testutil::PrintlnDrain [−][src]
pub struct PrintlnDrain { pub min_level: Level, }
A slog Drain that uses println!.
Fields
min_level: Level
Minimum logging level that we’re emitting.
Trait Implementations
impl Drain for PrintlnDrain
[src]
impl Drain for PrintlnDrain
[src]slog Drain that uses println!.
type Ok = ()
Type returned by this drain Read more
type Err = Error
Type of potential errors that can be returned by this Drain
fn log(
&self,
record: &Record<'_>,
_values: &OwnedKVList
) -> Result<Self::Ok, Self::Err>
[src]
&self,
record: &Record<'_>,
_values: &OwnedKVList
) -> Result<Self::Ok, Self::Err>
pub fn is_enabled(&self, level: Level) -> bool
[src]
pub fn is_critical_enabled(&self) -> bool
[src]
pub fn is_error_enabled(&self) -> bool
[src]
pub fn is_warning_enabled(&self) -> bool
[src]
pub fn is_info_enabled(&self) -> bool
[src]
pub fn is_debug_enabled(&self) -> bool
[src]
pub fn is_trace_enabled(&self) -> bool
[src]
pub fn map<F, R>(self, f: F) -> R where
F: FnOnce(Self) -> R,
[src]
F: FnOnce(Self) -> R,
pub fn filter<F>(self, f: F) -> Filter<Self, F> where
F: FilterFn,
[src]
F: FilterFn,
pub fn filter_level(self, level: Level) -> LevelFilter<Self>
[src]
pub fn map_err<F, E>(self, f: F) -> MapError<Self, E> where
F: MapErrFn<Self::Err, E>,
[src]
F: MapErrFn<Self::Err, E>,
pub fn ignore_res(self) -> IgnoreResult<Self>
[src]
pub fn fuse(self) -> Fuse<Self> where
Self::Err: Debug,
[src]
Self::Err: Debug,
Auto Trait Implementations
impl RefUnwindSafe for PrintlnDrain
impl RefUnwindSafe for PrintlnDrain
impl Send for PrintlnDrain
impl Send for PrintlnDrain
impl Sync for PrintlnDrain
impl Sync for PrintlnDrain
impl Unpin for PrintlnDrain
impl Unpin for PrintlnDrain
impl UnwindSafe for PrintlnDrain
impl UnwindSafe for PrintlnDrain
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SendRefUnwindSafeDrain for T where
T: Drain + Send + RefUnwindSafe + ?Sized,
[src]
impl<T> SendRefUnwindSafeDrain for T where
T: Drain + Send + RefUnwindSafe + ?Sized,
[src]impl<T> SendSyncRefUnwindSafeDrain for T where
T: Drain + Send + Sync + RefUnwindSafe + ?Sized,
[src]
impl<T> SendSyncRefUnwindSafeDrain for T where
T: Drain + Send + Sync + RefUnwindSafe + ?Sized,
[src]impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]impl<T> SendSyncUnwindSafeDrain for T where
T: Drain + Send + Sync + UnwindSafe + ?Sized,
[src]
impl<T> SendSyncUnwindSafeDrain for T where
T: Drain + Send + Sync + UnwindSafe + ?Sized,
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,