pub enum AudioDeviceErrors {
Device(DevicesError),
NotFound,
BuildStream(BuildStreamError),
PlayStream(PlayStreamError),
SupportedStreamsError(SupportedStreamConfigsError),
}Variants§
Device(DevicesError)
NotFound
BuildStream(BuildStreamError)
PlayStream(PlayStreamError)
SupportedStreamsError(SupportedStreamConfigsError)
Trait Implementations§
Source§impl Debug for AudioDeviceErrors
impl Debug for AudioDeviceErrors
Source§impl Display for AudioDeviceErrors
impl Display for AudioDeviceErrors
Source§impl Error for AudioDeviceErrors
impl Error for AudioDeviceErrors
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 AudioDeviceErrors
impl From<BuildStreamError> for AudioDeviceErrors
Source§fn from(source: BuildStreamError) -> Self
fn from(source: BuildStreamError) -> Self
Converts to this type from the input type.
Source§impl From<DevicesError> for AudioDeviceErrors
impl From<DevicesError> for AudioDeviceErrors
Source§fn from(source: DevicesError) -> Self
fn from(source: DevicesError) -> Self
Converts to this type from the input type.
Source§impl From<PlayStreamError> for AudioDeviceErrors
impl From<PlayStreamError> for AudioDeviceErrors
Source§fn from(source: PlayStreamError) -> Self
fn from(source: PlayStreamError) -> Self
Converts to this type from the input type.
Source§impl From<SupportedStreamConfigsError> for AudioDeviceErrors
impl From<SupportedStreamConfigsError> for AudioDeviceErrors
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 AudioDeviceErrors
impl RefUnwindSafe for AudioDeviceErrors
impl Send for AudioDeviceErrors
impl Sync for AudioDeviceErrors
impl Unpin for AudioDeviceErrors
impl UnwindSafe for AudioDeviceErrors
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more