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.
Sourcepub fn code(&self) -> CURLMcode
pub fn code(&self) -> CURLMcode
Returns the value of the underlying error corresponding to libcurl.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns curl’s human-readable description of this error.
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
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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.
Source§impl PartialEq for MultiError
impl PartialEq for MultiError
impl StructuralPartialEq for MultiError
Auto Trait Implementations§
impl Freeze for MultiError
impl RefUnwindSafe for MultiError
impl Send for MultiError
impl Sync for MultiError
impl Unpin for MultiError
impl UnwindSafe for MultiError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more