Enum qrcode_generator::QRCodeError
source · pub enum QRCodeError {
DataTooLong,
IOError(Error),
ImageError(ImageError),
ImageSizeTooSmall,
ImageSizeTooLarge,
}
Expand description
Errors when encoding QR code.
Variants§
Trait Implementations§
source§impl Debug for QRCodeError
impl Debug for QRCodeError
source§impl Display for QRCodeError
impl Display for QRCodeError
source§impl Error for QRCodeError
impl Error for QRCodeError
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()
source§impl From<Error> for QRCodeError
impl From<Error> for QRCodeError
source§impl From<ImageError> for QRCodeError
impl From<ImageError> for QRCodeError
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 QRCodeError
impl Send for QRCodeError
impl Sync for QRCodeError
impl Unpin for QRCodeError
impl !UnwindSafe for QRCodeError
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