Enum kira::manager::error::PlaySoundError
source · #[non_exhaustive]pub enum PlaySoundError<E> {
SoundLimitReached,
IntoSoundError(E),
CommandError(CommandError),
}
Expand description
Errors that can occur when playing a sound.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SoundLimitReached
Could not play a sound because the maximum number of sounds has been reached.
IntoSoundError(E)
An error occurred when initializing the sound.
CommandError(CommandError)
An error occurred when sending a command to the audio thread.
Trait Implementations§
source§impl<E: Debug> Debug for PlaySoundError<E>
impl<E: Debug> Debug for PlaySoundError<E>
source§impl<E> Display for PlaySoundError<E>
impl<E> Display for PlaySoundError<E>
source§impl<E: Debug> Error for PlaySoundError<E>
impl<E: Debug> Error for PlaySoundError<E>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<E> From<CommandError> for PlaySoundError<E>
impl<E> From<CommandError> for PlaySoundError<E>
source§fn from(v: CommandError) -> Self
fn from(v: CommandError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> RefUnwindSafe for PlaySoundError<E>where
E: RefUnwindSafe,
impl<E> Send for PlaySoundError<E>where
E: Send,
impl<E> Sync for PlaySoundError<E>where
E: Sync,
impl<E> Unpin for PlaySoundError<E>where
E: Unpin,
impl<E> UnwindSafe for PlaySoundError<E>where
E: UnwindSafe,
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