pub enum StreamStartError {
InputDeviceNotFound(String),
OutputDeviceNotFound(String),
FailedToGetDevices(DevicesError),
DefaultInputDeviceNotFound,
DefaultOutputDeviceNotFound,
FailedToGetConfigs(SupportedStreamConfigsError),
FailedToGetConfig(DefaultStreamConfigError),
BuildStreamError(BuildStreamError),
PlayStreamError(PlayStreamError),
}Expand description
An error occured while trying to start a CPAL audio stream.
Variants§
InputDeviceNotFound(String)
OutputDeviceNotFound(String)
FailedToGetDevices(DevicesError)
DefaultInputDeviceNotFound
DefaultOutputDeviceNotFound
FailedToGetConfigs(SupportedStreamConfigsError)
FailedToGetConfig(DefaultStreamConfigError)
BuildStreamError(BuildStreamError)
PlayStreamError(PlayStreamError)
Trait Implementations§
Source§impl Debug for StreamStartError
impl Debug for StreamStartError
Source§impl Display for StreamStartError
impl Display for StreamStartError
Source§impl Error for StreamStartError
impl Error for StreamStartError
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<BuildStreamError> for StreamStartError
impl From<BuildStreamError> for StreamStartError
Source§fn from(source: BuildStreamError) -> Self
fn from(source: BuildStreamError) -> Self
Converts to this type from the input type.
Source§impl From<DefaultStreamConfigError> for StreamStartError
impl From<DefaultStreamConfigError> for StreamStartError
Source§fn from(source: DefaultStreamConfigError) -> Self
fn from(source: DefaultStreamConfigError) -> Self
Converts to this type from the input type.
Source§impl From<DevicesError> for StreamStartError
impl From<DevicesError> for StreamStartError
Source§fn from(source: DevicesError) -> Self
fn from(source: DevicesError) -> Self
Converts to this type from the input type.
Source§impl From<PlayStreamError> for StreamStartError
impl From<PlayStreamError> for StreamStartError
Source§fn from(source: PlayStreamError) -> Self
fn from(source: PlayStreamError) -> Self
Converts to this type from the input type.
Source§impl From<SupportedStreamConfigsError> for StreamStartError
impl From<SupportedStreamConfigsError> for StreamStartError
Source§fn from(source: SupportedStreamConfigsError) -> Self
fn from(source: SupportedStreamConfigsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StreamStartError
impl RefUnwindSafe for StreamStartError
impl Send for StreamStartError
impl Sync for StreamStartError
impl Unpin for StreamStartError
impl UnsafeUnpin for StreamStartError
impl UnwindSafe for StreamStartError
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