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,
fn with_record<F>(
&self,
_record: &Record<'_>,
_logger_values: &OwnedKVList,
f: F
) -> Result<()> where
F: FnOnce(&mut dyn RecordDecorator) -> Result<()>,
[src]
&self,
_record: &Record<'_>,
_logger_values: &OwnedKVList,
f: F
) -> Result<()> where
F: FnOnce(&mut dyn RecordDecorator) -> Result<()>,
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,