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) -> MultiError
impl Debug for MultiError
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Display for MultiError
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Error for MultiError
impl From<MultiError> for io::Error
fn from(e: MultiError) -> io::Error
impl PartialEq<MultiError> for MultiError
fn eq(&Self, other: &MultiError) -> bool
fn ne(&Self, other: &MultiError) -> bool
impl StructuralPartialEq for MultiError
Auto Trait Implementations
impl RefUnwindSafe for MultiError
impl Send for MultiError
impl Sync for MultiError
impl Unpin for MultiError
impl UnwindSafe for MultiError
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T