Function new_writer

Source
pub fn new_writer<W: AsyncWrite + Sync + Send + 'static>(
    w: W,
) -> Box<dyn Writer>
Expand description

Creates a new Box<dyn Writer> instance with the AsyncJSONWriter for a given tokio::io::Write instance.