Enum yenc::DecodeError[][src]

pub enum DecodeError {
    IncompleteData {
        expected_size: usize,
        actual_size: usize,
    },
    InvalidHeader {
        line: String,
        position: usize,
    },
    InvalidChecksum,
    IoError(Error),
}

Error enum for errors that can be encountered while decoding.

Variants

Fewer or more bytes than expected.

Fields of IncompleteData

the expected size, as specified in the yenc header

the actual size, as found while reading

The header or footer line contains unexpected characters or is incomplete.

Fields of InvalidHeader

the header line

the position in the line where the parsing error occurred

CRC32 checksum of the part is not the expected checksum.

An I/O error occurred.

Trait Implementations

impl Debug for DecodeError
[src]

Formats the value using the given formatter. Read more

impl From<Error> for DecodeError
[src]

Performs the conversion.

impl Display for DecodeError
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for DecodeError

impl Sync for DecodeError