pub enum LutError {
Io {
path: PathBuf,
source: Error,
},
Magic,
Version(u16),
Size(u32),
Layout,
Checksum,
ProvenanceTooLong,
}Expand description
A baked table could not be written or read.
Variants§
Io
The file could not be opened, read or written.
Magic
The file does not start with KLUT.
Version(u16)
The file was written by a future or older layout.
Size(u32)
The declared side length is outside the accepted range.
Layout
The sample count or channel count does not match the header.
Checksum
The payload does not match its checksum.
ProvenanceTooLong
The table declares a provenance string longer than the header allows.
Trait Implementations§
Source§impl Error for LutError
impl Error for LutError
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 LutError
impl !UnwindSafe for LutError
impl Forget for LutError
impl Freeze for LutError
impl Move for LutError
impl Send for LutError
impl Sync for LutError
impl Unpin for LutError
impl UnsafeUnpin for LutError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more