pub enum HeaderError {
Format,
Header,
Size {
width: u32,
height: u32,
},
Bytes {
size: usize,
},
Orientation {
orientation: u16,
},
}Expand description
An image that the API cannot take as it is.
Variants§
Format
The image is not PNG or JPEG.
Header
The PNG or JPEG header is not complete.
Size
A side of the image is less than 280 px or more than 1568 px.
Bytes
The image has more than 16 MiB.
Orientation
The EXIF orientation turns or mirrors the image.
Implementations§
Trait Implementations§
Source§impl Clone for HeaderError
impl Clone for HeaderError
impl Copy for HeaderError
Source§impl Debug for HeaderError
impl Debug for HeaderError
impl Eq for HeaderError
Source§impl PartialEq for HeaderError
impl PartialEq for HeaderError
impl StructuralPartialEq for HeaderError
Auto Trait Implementations§
impl Forget for HeaderError
impl Freeze for HeaderError
impl Move for HeaderError
impl RefUnwindSafe for HeaderError
impl Send for HeaderError
impl Sync for HeaderError
impl Unpin for HeaderError
impl UnsafeUnpin for HeaderError
impl UnwindSafe for HeaderError
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