Enum memedb_core::Error
source · pub enum Error {
Io(Error),
Utf8(FromUtf8Error),
GifUnknownBlock(u8),
JpegInvalidMarker(u8),
PngChecksum(u32, u32),
}
Expand description
A possible error returned by a read_tags
or write_tags
function.
Variants§
Io(Error)
There was an IO error while reading or writing the tags.
Utf8(FromUtf8Error)
The tags being read do not constitute a valid UTF-8 string.
GifUnknownBlock(u8)
An unknown GIF block was found. Possible blocks are:
- Extension block (
0x21
) - Image Descriptor block (
0x2C
) - End Of File block (
0x3B
)
JpegInvalidMarker(u8)
An invalid JPEG marker was found. A marker can take any value except 0x00 and 0xFF.
PngChecksum(u32, u32)
There is a mismatch between the calculated CRC-32 hash and the one found in the block.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(value: FromUtf8Error) -> Self
fn from(value: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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