[][src]Enum yenc::DecodeError

pub enum DecodeError {
    IncompleteData {
        expected_size: usize,
        actual_size: usize,
    InvalidHeader {
        line: String,
        position: usize,

Error enum for errors that can be encountered while decoding.



Fewer or more bytes than expected.

Fields of IncompleteData

expected_size: usize

the expected size, as specified in the yenc header

actual_size: usize

the actual size, as found while reading


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

Fields of InvalidHeader

line: String

the header line

position: usize

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]

impl Display for DecodeError[src]

impl From<Error> for DecodeError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.