pub enum Error {
Io(Arc<Error>),
InvalidChunkSequence,
ChunkTooBig,
KeySize(usize),
BadPalette,
ChunkOrder([u8; 4]),
}
Expand description
Encoding Errors.
Variants§
Io(Arc<Error>)
A wrapped I/O error.
InvalidChunkSequence
Chunks arranged in invalid sequence. (FIXME: Replace with ChunkOrder)
ChunkTooBig
Chunk is too large to save in a PNG file (length must fit in 32 bits)
KeySize(usize)
key is not between 1-79 characters
BadPalette
PLTE chunk with a palette that has less than 1 or more than 256 colors
ChunkOrder([u8; 4])
Chunks arranged in invalid sequence. Provides PNG chunk identifier of the out-of-order chunk.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for Error
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