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]

[src]

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

[src]

Returns whether this error corresponds to CURLE_UNSUPPORTED_PROTOCOL.

[src]

Returns whether this error corresponds to CURLE_FAILED_INIT.

[src]

Returns whether this error corresponds to CURLE_URL_MALFORMAT.

[src]

Returns whether this error corresponds to CURLE_COULDNT_RESOLVE_PROXY.

[src]

Returns whether this error corresponds to CURLE_COULDNT_RESOLVE_HOST.

[src]

Returns whether this error corresponds to CURLE_COULDNT_CONNECT.

[src]

Returns whether this error corresponds to CURLE_REMOTE_ACCESS_DENIED.

[src]

Returns whether this error corresponds to CURLE_PARTIAL_FILE.

[src]

Returns whether this error corresponds to CURLE_QUOTE_ERROR.

[src]

Returns whether this error corresponds to CURLE_HTTP_RETURNED_ERROR.

[src]

Returns whether this error corresponds to CURLE_READ_ERROR.

[src]

Returns whether this error corresponds to CURLE_WRITE_ERROR.

[src]

Returns whether this error corresponds to CURLE_UPLOAD_FAILED.

[src]

Returns whether this error corresponds to CURLE_OUT_OF_MEMORY.

[src]

Returns whether this error corresponds to CURLE_OPERATION_TIMEDOUT.

[src]

Returns whether this error corresponds to CURLE_RANGE_ERROR.

[src]

Returns whether this error corresponds to CURLE_HTTP_POST_ERROR.

[src]

Returns whether this error corresponds to CURLE_SSL_CONNECT_ERROR.

[src]

Returns whether this error corresponds to CURLE_BAD_DOWNLOAD_RESUME.

[src]

Returns whether this error corresponds to CURLE_FILE_COULDNT_READ_FILE.

[src]

Returns whether this error corresponds to CURLE_FUNCTION_NOT_FOUND.

[src]

Returns whether this error corresponds to CURLE_ABORTED_BY_CALLBACK.

[src]

Returns whether this error corresponds to CURLE_BAD_FUNCTION_ARGUMENT.

[src]

Returns whether this error corresponds to CURLE_INTERFACE_FAILED.

[src]

Returns whether this error corresponds to CURLE_TOO_MANY_REDIRECTS.

[src]

Returns whether this error corresponds to CURLE_UNKNOWN_OPTION.

[src]

Returns whether this error corresponds to CURLE_PEER_FAILED_VERIFICATION.

[src]

Returns whether this error corresponds to CURLE_GOT_NOTHING.

[src]

Returns whether this error corresponds to CURLE_SSL_ENGINE_NOTFOUND.

[src]

Returns whether this error corresponds to CURLE_SSL_ENGINE_SETFAILED.

[src]

Returns whether this error corresponds to CURLE_SEND_ERROR.

[src]

Returns whether this error corresponds to CURLE_RECV_ERROR.

[src]

Returns whether this error corresponds to CURLE_SSL_CERTPROBLEM.

[src]

Returns whether this error corresponds to CURLE_SSL_CIPHER.

[src]

Returns whether this error corresponds to CURLE_SSL_CACERT.

[src]

Returns whether this error corresponds to CURLE_BAD_CONTENT_ENCODING.

[src]

Returns whether this error corresponds to CURLE_FILESIZE_EXCEEDED.

[src]

Returns whether this error corresponds to CURLE_USE_SSL_FAILED.

[src]

Returns whether this error corresponds to CURLE_SEND_FAIL_REWIND.

[src]

Returns whether this error corresponds to CURLE_SSL_ENGINE_INITFAILED.

[src]

Returns whether this error corresponds to CURLE_LOGIN_DENIED.

[src]

Returns whether this error corresponds to CURLE_CONV_FAILED.

[src]

Returns whether this error corresponds to CURLE_CONV_REQD.

[src]

Returns whether this error corresponds to CURLE_SSL_CACERT_BADFILE.

[src]

Returns whether this error corresponds to CURLE_SSL_CRL_BADFILE.

[src]

Returns whether this error corresponds to CURLE_SSL_SHUTDOWN_FAILED.

[src]

Returns whether this error corresponds to CURLE_AGAIN.

[src]

Returns whether this error corresponds to CURLE_SSL_ISSUER_ERROR.

[src]

Returns whether this error corresponds to CURLE_CHUNK_FAILED.

[src]

Returns the value of the underlying error corresponding to libcurl.

[src]

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

Trait Implementations

impl Clone for Error
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Error
[src]

[src]

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

[src]

This method tests for !=.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Error for Error
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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

impl From<NulError> for Error
[src]

[src]

Performs the conversion.