Enum qrcode::types::QrError [] [src]

pub enum QrError {
    DataTooLong,
    InvalidVersion,
    UnsupportedCharacterSet,
    InvalidEciDesignator,
    InvalidCharacter,
}

QrError encodes the error encountered when generating a QR code.

Variants

DataTooLong

The data is too long to encode into a QR code for the given version.

InvalidVersion

The provided version / error correction level combination is invalid.

UnsupportedCharacterSet

Some characters in the data cannot be supported by the provided QR code version.

InvalidEciDesignator

The provided ECI designator is invalid. A valid designator should be between 0 and 999999.

InvalidCharacter

A character not belonging to the character set is found.

Trait Implementations

impl Display for QrError
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

Derived Implementations

impl Clone for QrError
[src]

fn clone(&self) -> QrError

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for QrError
[src]

impl Eq for QrError
[src]

impl PartialEq for QrError
[src]

fn eq(&self, __arg_0: &QrError) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Debug for QrError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.