Struct curl::MultiError
[−]
[src]
pub struct MultiError { /* fields omitted */ }
An error from "multi" operations.
THis structure wraps a CURLMcode
.
Methods
impl MultiError
[src]
fn new(code: CURLMcode) -> MultiError
Creates a new error from the underlying code returned by libcurl.
fn is_bad_handle(&self) -> bool
Returns whether this error corresponds to CURLM_BAD_HANDLE.
fn is_bad_easy_handle(&self) -> bool
Returns whether this error corresponds to CURLM_BAD_EASY_HANDLE.
fn is_out_of_memory(&self) -> bool
Returns whether this error corresponds to CURLM_OUT_OF_MEMORY.
fn is_internal_error(&self) -> bool
Returns whether this error corresponds to CURLM_INTERNAL_ERROR.
fn is_bad_socket(&self) -> bool
Returns whether this error corresponds to CURLM_BAD_SOCKET.
fn is_unknown_option(&self) -> bool
Returns whether this error corresponds to CURLM_UNKNOWN_OPTION.
fn is_call_perform(&self) -> bool
Returns whether this error corresponds to CURLM_CALL_MULTI_PERFORM.
fn code(&self) -> CURLMcode
Returns the value of the underlying error corresponding to libcurl.
Trait Implementations
impl Clone for MultiError
[src]
fn clone(&self) -> MultiError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for MultiError
[src]
fn eq(&self, __arg_0: &MultiError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MultiError) -> bool
This method tests for !=
.