Struct slog_term::PlainSyncDecorator
source · pub struct PlainSyncDecorator<W>(/* private fields */)
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§
Trait Implementations§
source§impl<W> Decorator for PlainSyncDecorator<W>where
W: Write,
impl<W> Decorator for PlainSyncDecorator<W>where
W: Write,
source§fn with_record<F>(
&self,
_record: &Record<'_>,
_logger_values: &OwnedKVList,
f: F
) -> Result<()>
fn with_record<F>( &self, _record: &Record<'_>, _logger_values: &OwnedKVList, f: F ) -> Result<()>
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§
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