Struct curl::MultiError
pub struct MultiError { /* fields hidden */ }Documentation
An error from “multi” operations.
THis structure wraps a CURLMcode.
Implementations
impl MultiError
pub fn new(code: curl_sys::CURLMcode) -> MultiError
Creates a new error from the underlying code returned by libcurl.
pub fn is_bad_handle(&Self) -> bool
Returns whether this error corresponds to CURLM_BAD_HANDLE.
pub fn is_bad_easy_handle(&Self) -> bool
Returns whether this error corresponds to CURLM_BAD_EASY_HANDLE.
pub fn is_out_of_memory(&Self) -> bool
Returns whether this error corresponds to CURLM_OUT_OF_MEMORY.
pub fn is_internal_error(&Self) -> bool
Returns whether this error corresponds to CURLM_INTERNAL_ERROR.
pub fn is_bad_socket(&Self) -> bool
Returns whether this error corresponds to CURLM_BAD_SOCKET.
pub fn is_unknown_option(&Self) -> bool
Returns whether this error corresponds to CURLM_UNKNOWN_OPTION.
pub fn is_call_perform(&Self) -> bool
Returns whether this error corresponds to CURLM_CALL_MULTI_PERFORM.
pub fn code(&Self) -> curl_sys::CURLMcode
Returns the value of the underlying error corresponding to libcurl.
pub fn description(&Self) -> &str
Returns curl’s human-readable description of this error.
Trait Implementations
impl Clone for MultiError
fn clone(&Self) -> MultiErrorimpl Debug for MultiError
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Resultimpl Display for MultiError
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Resultimpl Error for MultiErrorimpl From<MultiError> for io::Error
fn from(e: MultiError) -> io::Errorimpl PartialEq<MultiError> for MultiError
fn eq(&Self, other: &MultiError) -> boolfn ne(&Self, other: &MultiError) -> boolimpl StructuralPartialEq for MultiErrorAuto Trait Implementations
impl RefUnwindSafe for MultiErrorimpl Send for MultiErrorimpl Sync for MultiErrorimpl Unpin for MultiErrorimpl UnwindSafe for MultiErrorBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T