pub struct PlainDecorator<W>(_)
where
    W: Write
;
Expand description

Plain (no-op) Decorator implementation

This decorator doesn’t do any coloring, and doesn’t do any synchronization between threads, so is not Sync. It is however useful combined with slog_async::Async drain, as slog_async::Async uses only one thread, and thus requires only Send from Drains it wraps.

use slog::*;
use slog_async::Async;

let decorator = slog_term::PlainDecorator::new(std::io::stdout());
let drain = Async::new(
       slog_term::FullFormat::new(decorator).build().fuse()
)
.build()
.fuse();

Implementations

Create PlainDecorator instance

Trait Implementations

Get a RecordDecorator for a given record Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.