[−][src]Enum riffu::error::RiffError
The type of errors that this library may emit. Note that most of this errors are currently unused. There are many, many ways reading into a RIFF file may fail.
Variants
Io(Error)
IO errors that will be emitted by standard IO.
PayloadLenMismatch(PayloadLenMismatch)
Indicates that the provided payload length does not match the raw data's length.
Since the data may be a list of Chunk
s, it is more likely that this error is caused when payload's length > raw data's size.
ChunkTooSmall(ChunkTooSmall)
Indicates that the requested data is too small to be a valid chunk. Note that this returns the entire data and the starting position where this "chunk" is supposed to reside.
ChunkTooSmallForChunkType(ChunkTooSmallForChunkType)
Indicates that the Chunk
is too small to contain a FourCC
.
Utf8Error(Utf8Error)
Indicates that this is a malformed RIFF file. RIFF file requires that the first 4 bytes of the file contains the ASCII letters "RIFF".
NoneError(NoneError)
Indicates a None
error caused by unwrapping a None
.
TryFromSliceError(TryFromSliceError)
Indicates a failure when trying to convert from &str
to a slice.
Indicates an attempt at appending a raw chunk into a chunk with
Trait Implementations
impl Debug for RiffError
[src]
impl Display for RiffError
[src]
impl Error for RiffError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Error> for RiffError
[src]
Converts std::io::Error
.
impl From<NoneError> for RiffError
[src]
Converts std::option::NoneError
.
impl From<TryFromSliceError> for RiffError
[src]
Converts std::option::NoneError
.
fn from(v: TryFromSliceError) -> Self
[src]
Performs the conversion.
impl From<Utf8Error> for RiffError
[src]
Converts std::str::Utf8Error
.
Auto Trait Implementations
impl !RefUnwindSafe for RiffError
impl Send for RiffError
impl Sync for RiffError
impl Unpin for RiffError
impl !UnwindSafe for RiffError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,