Struct curl::Error [] [src]

pub struct Error { /* fields omitted */ }

An error returned from various "easy" operations.

This structure wraps a CURLcode.

Methods

impl Error
[src]

Creates a new error from the underlying code returned by libcurl.

Returns whether this error corresponds to CURLE_UNSUPPORTED_PROTOCOL.

Returns whether this error corresponds to CURLE_FAILED_INIT.

Returns whether this error corresponds to CURLE_URL_MALFORMAT.

Returns whether this error corresponds to CURLE_COULDNT_RESOLVE_PROXY.

Returns whether this error corresponds to CURLE_COULDNT_RESOLVE_HOST.

Returns whether this error corresponds to CURLE_COULDNT_CONNECT.

Returns whether this error corresponds to CURLE_REMOTE_ACCESS_DENIED.

Returns whether this error corresponds to CURLE_PARTIAL_FILE.

Returns whether this error corresponds to CURLE_QUOTE_ERROR.

Returns whether this error corresponds to CURLE_HTTP_RETURNED_ERROR.

Returns whether this error corresponds to CURLE_READ_ERROR.

Returns whether this error corresponds to CURLE_WRITE_ERROR.

Returns whether this error corresponds to CURLE_UPLOAD_FAILED.

Returns whether this error corresponds to CURLE_OUT_OF_MEMORY.

Returns whether this error corresponds to CURLE_OPERATION_TIMEDOUT.

Returns whether this error corresponds to CURLE_RANGE_ERROR.

Returns whether this error corresponds to CURLE_HTTP_POST_ERROR.

Returns whether this error corresponds to CURLE_SSL_CONNECT_ERROR.

Returns whether this error corresponds to CURLE_BAD_DOWNLOAD_RESUME.

Returns whether this error corresponds to CURLE_FILE_COULDNT_READ_FILE.

Returns whether this error corresponds to CURLE_FUNCTION_NOT_FOUND.

Returns whether this error corresponds to CURLE_ABORTED_BY_CALLBACK.

Returns whether this error corresponds to CURLE_BAD_FUNCTION_ARGUMENT.

Returns whether this error corresponds to CURLE_INTERFACE_FAILED.

Returns whether this error corresponds to CURLE_TOO_MANY_REDIRECTS.

Returns whether this error corresponds to CURLE_UNKNOWN_OPTION.

Returns whether this error corresponds to CURLE_PEER_FAILED_VERIFICATION.

Returns whether this error corresponds to CURLE_GOT_NOTHING.

Returns whether this error corresponds to CURLE_SSL_ENGINE_NOTFOUND.

Returns whether this error corresponds to CURLE_SSL_ENGINE_SETFAILED.

Returns whether this error corresponds to CURLE_SEND_ERROR.

Returns whether this error corresponds to CURLE_RECV_ERROR.

Returns whether this error corresponds to CURLE_SSL_CERTPROBLEM.

Returns whether this error corresponds to CURLE_SSL_CIPHER.

Returns whether this error corresponds to CURLE_SSL_CACERT.

Returns whether this error corresponds to CURLE_BAD_CONTENT_ENCODING.

Returns whether this error corresponds to CURLE_FILESIZE_EXCEEDED.

Returns whether this error corresponds to CURLE_USE_SSL_FAILED.

Returns whether this error corresponds to CURLE_SEND_FAIL_REWIND.

Returns whether this error corresponds to CURLE_SSL_ENGINE_INITFAILED.

Returns whether this error corresponds to CURLE_LOGIN_DENIED.

Returns whether this error corresponds to CURLE_CONV_FAILED.

Returns whether this error corresponds to CURLE_CONV_REQD.

Returns whether this error corresponds to CURLE_SSL_CACERT_BADFILE.

Returns whether this error corresponds to CURLE_SSL_CRL_BADFILE.

Returns whether this error corresponds to CURLE_SSL_SHUTDOWN_FAILED.

Returns whether this error corresponds to CURLE_AGAIN.

Returns whether this error corresponds to CURLE_SSL_ISSUER_ERROR.

Returns whether this error corresponds to CURLE_CHUNK_FAILED.

Returns the value of the underlying error corresponding to libcurl.

Returns the extra description of this error, if any is available.

Trait Implementations

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for Error
[src]

Formats the value using the given formatter.

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<NulError> for Error
[src]

Performs the conversion.