Skip to main content

install

Function install 

Source
pub fn install(sink: Box<dyn Write + Send>) -> QueueWriter
Expand description

Start the drainer and hand back the MakeWriter the fmt layer takes.

sink is what the drainer writes to — stderr in the process, a fake in the tests. Installing twice is a no-op that returns the same queue; the second sink is ignored.