pub async fn initialize(w: Box<dyn Write + Send>)
Expand description

Initializes the output to the custom buffer. This function does not check if you set the output twice and panics!

§Arguments

  • w - a dynamic instance in Box which implements Write and Send

§Panics

If the mutex was poisoned, may panic. Also will panic, if it will be attempted to reinitialize the instance. If this is a problem, use initialize_safe