Enum png::DecodingError [] [src]

pub enum DecodingError {
    IoError(Error),
    Format(Cow<'static, str>),
    InvalidSignature,
    CrcMismatch {
        recover: usize,
        crc_val: u32,
        crc_sum: u32,
        chunk: ChunkType,
    },
    Other(Cow<'static, str>),
    CorruptFlateStream,
}

Variants

IoError
Format
InvalidSignature
CrcMismatch

Fields

recover

bytes to skip to try to recover from this error

crc_val

Stored CRC32 value

crc_sum

Calculated CRC32 sum

chunk
Other
CorruptFlateStream

Trait Implementations

impl Error for DecodingError

fn description(&self) -> &str

1.0.0fn cause(&self) -> Option<&Error>

impl Display for DecodingError

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

impl From<Error> for DecodingError

fn from(err: Error) -> DecodingError

impl From<String> for DecodingError

fn from(err: String) -> DecodingError

Derived Implementations

impl Debug for DecodingError

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