Struct curl::MultiError
source · [−]pub struct MultiError { /* private fields */ }
Expand description
An error from “multi” operations.
THis structure wraps a CURLMcode
.
Implementations
sourceimpl 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
sourceimpl Clone for MultiError
impl Clone for MultiError
sourcefn clone(&self) -> MultiError
fn clone(&self) -> MultiError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MultiError
impl Debug for MultiError
sourceimpl Display for MultiError
impl Display for MultiError
sourceimpl Error for MultiError
impl Error for MultiError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<MultiError> for Error
impl From<MultiError> for Error
sourcefn from(e: MultiError) -> Error
fn from(e: MultiError) -> Error
Converts to this type from the input type.
sourceimpl PartialEq<MultiError> for MultiError
impl PartialEq<MultiError> for MultiError
sourcefn eq(&self, other: &MultiError) -> bool
fn eq(&self, other: &MultiError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MultiError) -> bool
fn ne(&self, other: &MultiError) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more