Trait AudioStreamHandle

Source
pub trait AudioStreamHandle<Callback> {
    type Error: Error;

    // Required method
    fn eject(self) -> Result<Callback, Self::Error>;
}
Expand description

Trait for types which handles an audio stream (input or output).

Required Associated Types§

Source

type Error: Error

Type of errors which have caused the stream to fail.

Required Methods§

Source

fn eject(self) -> Result<Callback, Self::Error>

Eject the stream, returning ownership of the callback.

An error can occur when an irrecoverable error has occured and ownership has been lost already.

Implementors§

Source§

impl<Callback> AudioStreamHandle<Callback> for StreamHandle<Callback>

Source§

impl<Callback, InputHandle: AudioStreamHandle<InputProxy>, OutputHandle: AudioStreamHandle<DuplexCallback<Callback>>> AudioStreamHandle<Callback> for DuplexStreamHandle<InputHandle, OutputHandle>