Enum crates_io::Error [] [src]

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

Variants

Curl(ErrCode)NotOkResponse(Response)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 Display for Error
[src]

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

Formats the value using the given formatter.