pub enum StartStreamError {
AlreadyActive,
GraphCompileError(CompileGraphError),
InputDeviceNotFound(String),
OutputDeviceNotFound(String),
DefaultInputDeviceNotFound,
DefaultOutputDeviceNotFound,
FailedToGetConfig(Error),
BuildStreamError(Error),
PlayStreamError(Error),
}Expand description
An error occurred while trying to start a CPAL audio stream.
Variants§
AlreadyActive
The Firewheel context is already active. Either it has never been activated
or the FirewheelProcessor counterpart has not been dropped yet.
Note, in rare cases where the audio thread crashes without cleanly dropping its contents, this may never succeed. Consider adding a timeout to avoid deadlocking.
GraphCompileError(CompileGraphError)
The audio graph failed to compile.
InputDeviceNotFound(String)
OutputDeviceNotFound(String)
DefaultInputDeviceNotFound
DefaultOutputDeviceNotFound
FailedToGetConfig(Error)
BuildStreamError(Error)
PlayStreamError(Error)
Trait Implementations§
Source§impl Debug for StartStreamError
impl Debug for StartStreamError
Source§impl Display for StartStreamError
impl Display for StartStreamError
Source§impl Error for StartStreamError
impl Error for StartStreamError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ActivateError> for StartStreamError
impl From<ActivateError> for StartStreamError
Source§fn from(e: ActivateError) -> Self
fn from(e: ActivateError) -> Self
Converts to this type from the input type.
Source§impl From<CompileGraphError> for StartStreamError
impl From<CompileGraphError> for StartStreamError
Source§fn from(source: CompileGraphError) -> Self
fn from(source: CompileGraphError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StartStreamError
impl RefUnwindSafe for StartStreamError
impl Send for StartStreamError
impl Sync for StartStreamError
impl Unpin for StartStreamError
impl UnsafeUnpin for StartStreamError
impl UnwindSafe for StartStreamError
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