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>)CorruptFlateStreamTrait Implementations
impl Debug for DecodingError[src]
impl Debug for DecodingErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for DecodingError[src]
impl Error for DecodingErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
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]
impl Display for DecodingErrorfn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl From<Error> for DecodingError[src]
impl From<Error> for DecodingErrorfn from(err: Error) -> DecodingError[src]
fn from(err: Error) -> DecodingErrorPerforms the conversion.
impl From<String> for DecodingError[src]
impl From<String> for DecodingErrorfn from(err: String) -> DecodingError[src]
fn from(err: String) -> DecodingErrorPerforms the conversion.
impl From<DecodingError> for Error[src]
impl From<DecodingError> for Errorfn from(err: DecodingError) -> Error[src]
fn from(err: DecodingError) -> ErrorPerforms the conversion.
Auto Trait Implementations
impl Send for DecodingError
impl Send for DecodingErrorimpl Sync for DecodingError
impl Sync for DecodingError