We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52550d0 commit 12d0f02Copy full SHA for 12d0f02
src/io.rs
@@ -34,6 +34,11 @@ impl Output {
34
f(b)
35
}
36
37
+
38
+ /// Installs a thread local error handler.
39
+ ///
40
+ /// Sometimes alsa-lib writes to stderr, but if you prefer, you can write it here instead.
41
+ /// Should you wish to empty the buffer; just call local_error_handler again and drop the old instance.
42
pub fn local_error_handler() -> Result<Rc<RefCell<Output>>> {
43
let output = Output::buffer_open()?;
44
let r = Rc::new(RefCell::new(output));
0 commit comments