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

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

§Arguments

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

§Returns

  • bool true if mutex is not poisoned

  • bool false if mutex was poisoned

§Panics

Does not panic!