devela/media/audio/
error.rs
1#[doc = crate::TAG_RESULT!()]
7pub type AudioResult<T> = crate::Result<T, AudioError>;
9
10#[doc = crate::TAG_ERROR_COMPOSITE!()]
11#[non_exhaustive]
13#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
14pub enum AudioError {
15 AudioError,
17}
18
19mod core_impls {
20 use crate::{AudioError, Display, FmtResult, Formatter};
21
22 impl crate::Error for AudioError {}
23 impl crate::ExtError for AudioError {
24 type Kind = ();
25 fn error_eq(&self, other: &Self) -> bool {
26 self == other
27 }
28 fn error_kind(&self) -> Self::Kind {}
29 }
30
31 impl Display for AudioError {
32 fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult<()> {
33 write![f, "AudioError"]
34 }
35 }
36}