Skip to main content

try_set_output_capture

Function try_set_output_capture 

Source
#[doc(hidden)]
pub fn try_set_output_capture( sink: Option<Arc<Mutex<Vec<u8>>>>, ) -> Result<Option<Arc<Mutex<Vec<u8>>>>, AccessError>
🔬This is a nightly-only experimental API. (internal_output_capture)
Expand description

Tries to set the thread-local output capture buffer and returns the old one. This may fail once thread-local destructors are called. It’s used in panic handling instead of set_output_capture.