pub enum PlayError {
TimeOutOfBounds,
FileNotAccessible(Error),
WrongFileType,
DeviceIoError(String, Option<Box<dyn Error + 'static>>),
DeviceDoesNotSupportAudioSettings(Vec<AudioSettings>, Option<Box<dyn Error + 'static>>),
DeviceDoesNotExist {
name: String,
},
StreamIoError(String, Option<Box<dyn Error + 'static>>),
PoisonedMutex(String, Box<dyn Error>),
Unsupported(String),
}Expand description
The error type used allthrought the ez_audi crate
Variants§
TimeOutOfBounds
The time specified is out of bound
FileNotAccessible(Error)
The file is not accesible/does not exist
WrongFileType
The file type hints at the fact that the file type is not the right one
DeviceIoError(String, Option<Box<dyn Error + 'static>>)
Error while trying to communicate with the device
DeviceDoesNotSupportAudioSettings(Vec<AudioSettings>, Option<Box<dyn Error + 'static>>)
The device does not support specific requirements to play the samples
DeviceDoesNotExist
The device does not exist
StreamIoError(String, Option<Box<dyn Error + 'static>>)
Error while trying to comunicate with a stream
PoisonedMutex(String, Box<dyn Error>)
A Mutex got poisoned and is not accessible anymore
Unsupported(String)
Feature is not support as of yet
Trait Implementations§
Source§impl Error for PlayError
impl Error for PlayError
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<PauseStreamError> for PlayError
impl From<PauseStreamError> for PlayError
Source§fn from(value: PauseStreamError) -> Self
fn from(value: PauseStreamError) -> Self
Converts to this type from the input type.
Source§impl From<PlayStreamError> for PlayError
impl From<PlayStreamError> for PlayError
Source§fn from(value: PlayStreamError) -> Self
fn from(value: PlayStreamError) -> Self
Converts to this type from the input type.
Source§impl<T: 'static> From<PoisonError<T>> for PlayError
impl<T: 'static> From<PoisonError<T>> for PlayError
Source§fn from(value: PoisonError<T>) -> Self
fn from(value: PoisonError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PlayError
impl !RefUnwindSafe for PlayError
impl !Send for PlayError
impl !Sync for PlayError
impl Unpin for PlayError
impl !UnwindSafe for PlayError
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