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.

Trait Implementations

impl Display for MultiError

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

impl Debug for MultiError

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

impl Error for MultiError

fn description(&self) -> &str

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

Derived Implementations

impl PartialEq for MultiError

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

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

impl Clone for MultiError

fn clone(&self) -> MultiError

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