#[non_exhaustive]pub enum SoundFontError {
Show 24 variants
IoError(Error),
RiffChunkNotFound,
InvalidRiffChunkType {
expected: FourCC,
actual: FourCC,
},
ListChunkNotFound,
InvalidListChunkType {
expected: FourCC,
actual: FourCC,
},
ListContainsUnknownId(FourCC),
SampleDataNotFound,
InvalidSampleData,
UnsupportedSampleFormat,
SampleDecompressionFailed(String),
SubChunkNotFound(FourCC),
InvalidPresetList,
InvalidInstrumentId {
preset_id: usize,
instrument_id: usize,
},
InvalidPreset(usize),
PresetNotFound,
InvalidInstrumentList,
InvalidSampleId {
instrument_id: usize,
sample_id: usize,
},
InvalidInstrument(usize),
InstrumentNotFound,
InvalidSampleHeaderList,
InvalidZoneList,
ZoneNotFound,
InvalidGeneratorList,
SanityCheckFailed,
}Expand description
Represents an error when loading a SoundFont.
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.
IoError(Error)
RiffChunkNotFound
InvalidRiffChunkType
ListChunkNotFound
InvalidListChunkType
ListContainsUnknownId(FourCC)
SampleDataNotFound
InvalidSampleData
UnsupportedSampleFormat
SampleDecompressionFailed(String)
SubChunkNotFound(FourCC)
InvalidPresetList
InvalidInstrumentId
InvalidPreset(usize)
PresetNotFound
InvalidInstrumentList
InvalidSampleId
InvalidInstrument(usize)
InstrumentNotFound
InvalidSampleHeaderList
InvalidZoneList
ZoneNotFound
InvalidGeneratorList
SanityCheckFailed
Trait Implementations§
Source§impl Debug for SoundFontError
impl Debug for SoundFontError
Source§impl Display for SoundFontError
impl Display for SoundFontError
Source§impl Error for SoundFontError
impl Error for SoundFontError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SoundFontError
impl !UnwindSafe for SoundFontError
impl Freeze for SoundFontError
impl Send for SoundFontError
impl Sync for SoundFontError
impl Unpin for SoundFontError
impl UnsafeUnpin for SoundFontError
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