Struct curl::MultiError
[−]
[src]
pub struct MultiError { // some fields omitted }
An error from "multi" operations.
THis structure wraps a CURLMcode
.
Methods
impl MultiError
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.