#[non_exhaustive]pub enum FloErrorKind {
InvalidData,
UnsupportedFeature,
Io,
Codec,
Metadata,
Lossy,
Lossless,
Wasm,
Internal,
}Expand description
Category of a FloError
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.
InvalidData
The bytes are not a well-formed flo file (bad magic, header, CRC, frames…).
UnsupportedFeature
A feature or option this build doesn’t support (wasm/audio-io/etc).
Io
I/O failure. std builds carry the underlying source error.
Codec
Codec / signal-processing failure.
Metadata
Metadata (de)serialization failure.
Lossy
Lossy encode/decode failure.
Lossless
Lossless encode/decode failure.
Wasm
WebAssembly bridge failure.
Internal
Internal invariant broken: a bug, not a data problem.
Trait Implementations§
Source§impl Clone for FloErrorKind
impl Clone for FloErrorKind
impl Copy for FloErrorKind
Source§impl Debug for FloErrorKind
impl Debug for FloErrorKind
impl Eq for FloErrorKind
Source§impl Hash for FloErrorKind
impl Hash for FloErrorKind
Source§impl PartialEq for FloErrorKind
impl PartialEq for FloErrorKind
impl StructuralPartialEq for FloErrorKind
Auto Trait Implementations§
impl Freeze for FloErrorKind
impl RefUnwindSafe for FloErrorKind
impl Send for FloErrorKind
impl Sync for FloErrorKind
impl Unpin for FloErrorKind
impl UnsafeUnpin for FloErrorKind
impl UnwindSafe for FloErrorKind
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