pub enum Error {
CannotDetermineTimestamp,
PoisonError,
UnsupportedSampleFormat,
NoOutDevice,
Unsupported {
component: &'static str,
feature: &'static str,
},
NoSourceIsPlaying,
NoPrefetchedSource,
Cpal(CpalError),
Symph(Error),
Other(Error),
}Expand description
Error type of this crate
Variants§
CannotDetermineTimestamp
PoisonError
Error that is returned when something fails to lock some resource
UnsupportedSampleFormat
Returned when the device uses an unsupported sample format
NoOutDevice
Returned when the sink fails to select output device
Unsupported
Returned when some feature is not supported
NoSourceIsPlaying
Returned when Sink tries to do action on Source, but there is no source
NoPrefetchedSource
Cpal(CpalError)
Cpal errors
Symph(Error)
Errors from the crate::source::Symph source
Other(Error)
Any other error, usually from a custom source
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl From<BuildStreamError> for Error
Source§fn from(value: BuildStreamError) -> Self
fn from(value: BuildStreamError) -> Self
Converts to this type from the input type.
Source§impl From<DefaultStreamConfigError> for Error
impl From<DefaultStreamConfigError> for Error
Source§fn from(value: DefaultStreamConfigError) -> Self
fn from(value: DefaultStreamConfigError) -> Self
Converts to this type from the input type.
Source§impl From<DevicesError> for Error
impl From<DevicesError> for Error
Source§fn from(value: DevicesError) -> Self
fn from(value: DevicesError) -> Self
Converts to this type from the input type.
Source§impl From<PauseStreamError> for Error
impl From<PauseStreamError> for Error
Source§fn from(value: PauseStreamError) -> Self
fn from(value: PauseStreamError) -> Self
Converts to this type from the input type.
Source§impl From<PlayStreamError> for Error
impl From<PlayStreamError> for Error
Source§fn from(value: PlayStreamError) -> Self
fn from(value: PlayStreamError) -> Self
Converts to this type from the input type.
Source§impl<T> From<PoisonError<T>> for Error
impl<T> From<PoisonError<T>> for Error
Source§fn from(_value: PoisonError<T>) -> Self
fn from(_value: PoisonError<T>) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for Error
impl From<StreamError> for Error
Source§fn from(value: StreamError) -> Self
fn from(value: StreamError) -> Self
Converts to this type from the input type.
Source§impl From<SupportedStreamConfigsError> for Error
impl From<SupportedStreamConfigsError> for Error
Source§fn from(value: SupportedStreamConfigsError) -> Self
fn from(value: SupportedStreamConfigsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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