Struct slog_stream::AsyncStreamer
[−]
[src]
pub struct AsyncStreamer<F: Format> { /* fields omitted */ }
Drain formating records and writing them to a byte-stream (io::Write
)
asynchronously.
Internally, new thread will be spawned taking care of actually writing the data.
Methods
impl<F: Format> AsyncStreamer<F>
[src]
fn new<W: Write + Send + 'static>(io: W, format: F) -> Self
Create new AsyncStreamer
writing to io
using format