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(Error)Format(Cow<'static, str>)InvalidSignatureCrcMismatchFields of CrcMismatch
recover: usize | bytes to skip to try to recover from this error |
crc_val: u32 | Stored CRC32 value |
crc_sum: u32 | Calculated CRC32 sum |
chunk: ChunkType |
Other(Cow<'static, str>)CorruptFlateStream
Trait Implementations
impl Debug for DecodingError[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Error for DecodingError[src]
fn description(&self) -> &str[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
The lower-level cause of this error, if any. Read more
impl Display for DecodingError[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl From<Error> for DecodingError[src]
fn from(err: Error) -> DecodingError[src]
Performs the conversion.
impl From<String> for DecodingError[src]
fn from(err: String) -> DecodingError[src]
Performs the conversion.
impl From<DecodingError> for Error[src]
fn from(err: DecodingError) -> Error[src]
Performs the conversion.