pub struct Output(/* private fields */);Expand description
snd_output_t wrapper
Implementations§
Source§impl Output
impl Output
pub fn buffer_open() -> Result<Output>
pub fn buffer_string<T, F: FnOnce(&[u8]) -> T>(&self, f: F) -> T
Sourcepub fn local_error_handler() -> Result<Rc<RefCell<Output>>>
pub fn local_error_handler() -> Result<Rc<RefCell<Output>>>
Installs a thread local error handler.
Sometimes alsa-lib writes to stderr, but if you prefer, you can write it here instead. Should you wish to empty the buffer; just call local_error_handler again and drop the old instance.
This is not available in no-std environments, because we use thread_local variables.
Trait Implementations§
impl Send for Output
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl !Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more