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
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>)CorruptFlateStreamTrait Implementations
impl Debug for DecodingError[src]
impl Error for DecodingError[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>1.0.0
The lower-level cause of this error, if any. Read more
impl Display for DecodingError[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl From<Error> for DecodingError[src]
fn from(err: Error) -> DecodingError
Performs the conversion.
impl From<String> for DecodingError[src]
fn from(err: String) -> DecodingError
Performs the conversion.