#[non_exhaustive]pub enum RenderError {
ImageSizeTooSmall,
ImageSizeTooLarge,
Io(Error),
Image(ImageError),
}Expand description
Errors returned while rendering a QR Code symbol.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ImageSizeTooSmall
The requested output is too small for an integer module scale and quiet zone.
ImageSizeTooLarge
The requested output dimensions overflow a supported image size.
Io(Error)
Available on crate feature
std only.An input or output operation failed.
Image(ImageError)
Available on crate feature
image only.PNG encoding failed.
Trait Implementations§
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
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()
Source§impl From<Error> for RenderError
Available on crate feature std only.
impl From<Error> for RenderError
Available on crate feature
std only.Source§impl From<ImageError> for RenderError
Available on crate feature image only.
impl From<ImageError> for RenderError
Available on crate feature
image only.Source§fn from(error: ImageError) -> Self
fn from(error: ImageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RenderError
impl !UnwindSafe for RenderError
impl Freeze for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
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