Struct slog_atomic::AtomicSwitch
[−]
[src]
pub struct AtomicSwitch<E>(_);
Drain allowing atomically switching a sub-drain in runtime
Trait Implementations
impl<E> Drain for AtomicSwitch<E>
[src]
type Error = E
Type of potential error returned during logging
fn log(&self, info: &Record, logger_values: &OwnedKeyValueList) -> Result<(), E>
Write one logging record As an optimization (avoiding allocations), loggers are responsible for providing a byte buffer, that Drain
can use for their own needs. Read more