Struct slog_term::PlainSyncDecorator
source · [−]pub struct PlainSyncDecorator<W>(_)
where
W: Write;
Expand description
PlainSync Decorator
implementation
This implementation is exactly like PlainDecorator
but it takes care
of synchronizing writes to io
.
use slog::*;
let plain = slog_term::PlainSyncDecorator::new(std::io::stdout());
let root = Logger::root(
slog_term::FullFormat::new(plain).build().fuse(), o!()
);
Implementations
sourceimpl<W> PlainSyncDecorator<W> where
W: Write,
impl<W> PlainSyncDecorator<W> where
W: Write,
Trait Implementations
sourceimpl<W> Decorator for PlainSyncDecorator<W> where
W: Write,
impl<W> Decorator for PlainSyncDecorator<W> where
W: Write,
sourcefn with_record<F>(
&self,
_record: &Record<'_>,
_logger_values: &OwnedKVList,
f: F
) -> Result<()> where
F: FnOnce(&mut dyn RecordDecorator) -> Result<()>,
fn with_record<F>(
&self,
_record: &Record<'_>,
_logger_values: &OwnedKVList,
f: F
) -> Result<()> where
F: FnOnce(&mut dyn RecordDecorator) -> Result<()>,
Get a RecordDecorator
for a given record
Read more
Auto Trait Implementations
impl<W> RefUnwindSafe for PlainSyncDecorator<W>
impl<W> Send for PlainSyncDecorator<W> where
W: Send,
impl<W> Sync for PlainSyncDecorator<W> where
W: Send,
impl<W> Unpin for PlainSyncDecorator<W>
impl<W> UnwindSafe for PlainSyncDecorator<W>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more