Enum crates_io::Error [] [src]

pub enum Error {
    Curl(Error),
    NotOkResponse(u32Vec<String>, Vec<u8>),
    NonUtf8Body,
    Api(Vec<String>),
    Unauthorized,
    TokenMissing,
    Io(Error),
    NotFound,
    JsonEncodeError(EncoderError),
    JsonDecodeError(DecoderError),
}

Variants

Curl(Error)NotOkResponse(u32Vec<String>, Vec<u8>)NonUtf8BodyApi(Vec<String>)UnauthorizedTokenMissingIo(Error)NotFoundJsonEncodeError(EncoderError)JsonDecodeError(DecoderError)

Trait Implementations

impl From<EncoderError> for Error
[src]

fn from(err: EncoderError) -> Error

Performs the conversion.

impl From<DecoderError> for Error
[src]

fn from(err: DecoderError) -> Error

Performs the conversion.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.