Struct slog_term::PlainSyncDecorator[][src]

pub struct PlainSyncDecorator<W>(_)
where
    W: Write
;

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

impl<W> PlainSyncDecorator<W> where
    W: Write
[src]

pub fn new(io: W) -> Self[src]

Create PlainSyncDecorator instance

Trait Implementations

impl<W> Decorator for PlainSyncDecorator<W> where
    W: Write
[src]

Auto Trait Implementations

impl<W> RefUnwindSafe for PlainSyncDecorator<W>[src]

impl<W> Send for PlainSyncDecorator<W> where
    W: Send
[src]

impl<W> Sync for PlainSyncDecorator<W> where
    W: Send
[src]

impl<W> Unpin for PlainSyncDecorator<W>[src]

impl<W> UnwindSafe for PlainSyncDecorator<W>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.