Struct curl::MultiError
source · pub struct MultiError { /* private fields */ }
Expand description
An error from “multi” operations.
THis structure wraps a CURLMcode
.
Implementations§
source§impl MultiError
impl MultiError
sourcepub fn new(code: CURLMcode) -> MultiError
pub fn new(code: CURLMcode) -> MultiError
Creates a new error from the underlying code returned by libcurl.
sourcepub fn is_bad_handle(&self) -> bool
pub fn is_bad_handle(&self) -> bool
Returns whether this error corresponds to CURLM_BAD_HANDLE.
sourcepub fn is_bad_easy_handle(&self) -> bool
pub fn is_bad_easy_handle(&self) -> bool
Returns whether this error corresponds to CURLM_BAD_EASY_HANDLE.
sourcepub fn is_out_of_memory(&self) -> bool
pub fn is_out_of_memory(&self) -> bool
Returns whether this error corresponds to CURLM_OUT_OF_MEMORY.
sourcepub fn is_internal_error(&self) -> bool
pub fn is_internal_error(&self) -> bool
Returns whether this error corresponds to CURLM_INTERNAL_ERROR.
sourcepub fn is_bad_socket(&self) -> bool
pub fn is_bad_socket(&self) -> bool
Returns whether this error corresponds to CURLM_BAD_SOCKET.
sourcepub fn is_unknown_option(&self) -> bool
pub fn is_unknown_option(&self) -> bool
Returns whether this error corresponds to CURLM_UNKNOWN_OPTION.
sourcepub fn is_call_perform(&self) -> bool
pub fn is_call_perform(&self) -> bool
Returns whether this error corresponds to CURLM_CALL_MULTI_PERFORM.
Trait Implementations§
source§impl Clone for MultiError
impl Clone for MultiError
source§fn clone(&self) -> MultiError
fn clone(&self) -> MultiError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MultiError
impl Debug for MultiError
source§impl Display for MultiError
impl Display for MultiError
source§impl Error for MultiError
impl Error for MultiError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl From<MultiError> for Error
impl From<MultiError> for Error
source§fn from(e: MultiError) -> Error
fn from(e: MultiError) -> Error
Converts to this type from the input type.