[][src]Enum manic::Error

pub enum Error {
    LenParse(ParseIntError),
    NoLen,
    TokioIOError(Error),
    NetError(Error),
    ToStr(ToStrError),
    NoFilename(String),
    UrlParseError(ParseError),
    SHA256MisMatch(String),
    BadChunkSize,
}

Error definition for possible errors in this crate

Variants

LenParse(ParseIntError)

Returned when the content length couldn't be parsed

NoLen

Returned when the content-length = 0

TokioIOError(Error)

Represents problems with Tokio based IO

NetError(Error)

Represents problems with network connectivity

ToStr(ToStrError)

Returned when the header can't be parsed to a String

NoFilename(String)

Returned when there's no filename in the url

UrlParseError(ParseError)

Returned when the url couldn't be parsed

SHA256MisMatch(String)

Returned when the SHA256 sum didn't match

BadChunkSize

Returned when the selected chunk size == 0

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<ParseError> for Error[src]

impl From<ParseIntError> for Error[src]

impl From<ToStrError> for Error[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]