Struct curl::Error [] [src]

pub struct Error {
    // some fields omitted
}

An error returned from various "easy" operations.

This structure wraps a CURLcode.

Methods

impl Error

fn new(code: CURLcode) -> Error

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

fn is_unsupported_protocol(&self) -> bool

Returns whether this error corresponds to CURLE_UNSUPPORTED_PROTOCOL.

fn is_failed_init(&self) -> bool

Returns whether this error corresponds to CURLE_FAILED_INIT.

fn is_url_malformed(&self) -> bool

Returns whether this error corresponds to CURLE_URL_MALFORMAT.

fn is_couldnt_resolve_proxy(&self) -> bool

Returns whether this error corresponds to CURLE_COULDNT_RESOLVE_PROXY.

fn is_couldnt_resolve_host(&self) -> bool

Returns whether this error corresponds to CURLE_COULDNT_RESOLVE_HOST.

fn is_couldnt_connect(&self) -> bool

Returns whether this error corresponds to CURLE_COULDNT_CONNECT.

fn is_remote_access_denied(&self) -> bool

Returns whether this error corresponds to CURLE_REMOTE_ACCESS_DENIED.

fn is_partial_file(&self) -> bool

Returns whether this error corresponds to CURLE_PARTIAL_FILE.

fn is_quote_error(&self) -> bool

Returns whether this error corresponds to CURLE_QUOTE_ERROR.

fn is_http_returned_error(&self) -> bool

Returns whether this error corresponds to CURLE_HTTP_RETURNED_ERROR.

fn is_read_error(&self) -> bool

Returns whether this error corresponds to CURLE_READ_ERROR.

fn is_write_error(&self) -> bool

Returns whether this error corresponds to CURLE_WRITE_ERROR.

fn is_upload_failed(&self) -> bool

Returns whether this error corresponds to CURLE_UPLOAD_FAILED.

fn is_out_of_memory(&self) -> bool

Returns whether this error corresponds to CURLE_OUT_OF_MEMORY.

fn is_operation_timedout(&self) -> bool

Returns whether this error corresponds to CURLE_OPERATION_TIMEDOUT.

fn is_range_error(&self) -> bool

Returns whether this error corresponds to CURLE_RANGE_ERROR.

fn is_http_post_error(&self) -> bool

Returns whether this error corresponds to CURLE_HTTP_POST_ERROR.

fn is_ssl_connect_error(&self) -> bool

Returns whether this error corresponds to CURLE_SSL_CONNECT_ERROR.

fn is_bad_download_resume(&self) -> bool

Returns whether this error corresponds to CURLE_BAD_DOWNLOAD_RESUME.

fn is_file_couldnt_read_file(&self) -> bool

Returns whether this error corresponds to CURLE_FILE_COULDNT_READ_FILE.

fn is_function_not_found(&self) -> bool

Returns whether this error corresponds to CURLE_FUNCTION_NOT_FOUND.

fn is_aborted_by_callback(&self) -> bool

Returns whether this error corresponds to CURLE_ABORTED_BY_CALLBACK.

fn is_bad_function_argument(&self) -> bool

Returns whether this error corresponds to CURLE_BAD_FUNCTION_ARGUMENT.

fn is_interface_failed(&self) -> bool

Returns whether this error corresponds to CURLE_INTERFACE_FAILED.

fn is_too_many_redirects(&self) -> bool

Returns whether this error corresponds to CURLE_TOO_MANY_REDIRECTS.

fn is_unknown_option(&self) -> bool

Returns whether this error corresponds to CURLE_UNKNOWN_OPTION.

fn is_peer_failed_verification(&self) -> bool

Returns whether this error corresponds to CURLE_PEER_FAILED_VERIFICATION.

fn is_got_nothing(&self) -> bool

Returns whether this error corresponds to CURLE_GOT_NOTHING.

fn is_ssl_engine_notfound(&self) -> bool

Returns whether this error corresponds to CURLE_SSL_ENGINE_NOTFOUND.

fn is_ssl_engine_setfailed(&self) -> bool

Returns whether this error corresponds to CURLE_SSL_ENGINE_SETFAILED.

fn is_send_error(&self) -> bool

Returns whether this error corresponds to CURLE_SEND_ERROR.

fn is_recv_error(&self) -> bool

Returns whether this error corresponds to CURLE_RECV_ERROR.

fn is_ssl_certproblem(&self) -> bool

Returns whether this error corresponds to CURLE_SSL_CERTPROBLEM.

fn is_ssl_cipher(&self) -> bool

Returns whether this error corresponds to CURLE_SSL_CIPHER.

fn is_ssl_cacert(&self) -> bool

Returns whether this error corresponds to CURLE_SSL_CACERT.

fn is_bad_content_encoding(&self) -> bool

Returns whether this error corresponds to CURLE_BAD_CONTENT_ENCODING.

fn is_filesize_exceeded(&self) -> bool

Returns whether this error corresponds to CURLE_FILESIZE_EXCEEDED.

fn is_use_ssl_failed(&self) -> bool

Returns whether this error corresponds to CURLE_USE_SSL_FAILED.

fn is_send_fail_rewind(&self) -> bool

Returns whether this error corresponds to CURLE_SEND_FAIL_REWIND.

fn is_ssl_engine_initfailed(&self) -> bool

Returns whether this error corresponds to CURLE_SSL_ENGINE_INITFAILED.

fn is_login_denied(&self) -> bool

Returns whether this error corresponds to CURLE_LOGIN_DENIED.

fn is_conv_failed(&self) -> bool

Returns whether this error corresponds to CURLE_CONV_FAILED.

fn is_conv_required(&self) -> bool

Returns whether this error corresponds to CURLE_CONV_REQD.

fn is_ssl_cacert_badfile(&self) -> bool

Returns whether this error corresponds to CURLE_SSL_CACERT_BADFILE.

fn is_ssl_crl_badfile(&self) -> bool

Returns whether this error corresponds to CURLE_SSL_CRL_BADFILE.

fn is_ssl_shutdown_failed(&self) -> bool

Returns whether this error corresponds to CURLE_SSL_SHUTDOWN_FAILED.

fn is_again(&self) -> bool

Returns whether this error corresponds to CURLE_AGAIN.

fn is_ssl_issuer_error(&self) -> bool

Returns whether this error corresponds to CURLE_SSL_ISSUER_ERROR.

fn is_chunk_failed(&self) -> bool

Returns whether this error corresponds to CURLE_CHUNK_FAILED.

fn code(&self) -> CURLcode

Returns the value of the underlying error corresponding to libcurl.

Trait Implementations

impl Display for Error

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

impl Debug for Error

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

impl Error for Error

fn description(&self) -> &str

1.0.0fn cause(&self) -> Option<&Error>

impl From<NulError> for Error

fn from(_: NulError) -> Error

Derived Implementations

impl PartialEq for Error

fn eq(&self, __arg_0: &Error) -> bool

fn ne(&self, __arg_0: &Error) -> bool

impl Clone for Error

fn clone(&self) -> Error

1.0.0fn clone_from(&mut self, source: &Self)