Struct slog_term::PlainSyncDecorator [−][src]
PlainSync Decorator
implementation
This implementation is exactly like PlainDecorator
but it takes care
of synchronizing writes to io
.
#[macro_use] extern crate slog; extern crate slog_term; use slog::*; fn main() { let plain = slog_term::PlainSyncDecorator::new(std::io::stdout()); let root = Logger::root( slog_term::FullFormat::new(plain).build().fuse(), o!() ); }
Implementations
impl<W> PlainSyncDecorator<W> where
W: Write,
[src][−]
W: Write,
Trait Implementations
impl<W> Decorator for PlainSyncDecorator<W> where
W: Write,
[src][+]
W: Write,
Auto Trait Implementations
impl<W> RefUnwindSafe for PlainSyncDecorator<W>
impl<W> Send for PlainSyncDecorator<W> where
W: Send,
W: Send,
impl<W> Sync for PlainSyncDecorator<W> where
W: Send,
W: Send,
impl<W> Unpin for PlainSyncDecorator<W>
impl<W> UnwindSafe for PlainSyncDecorator<W>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,