Struct curl::ShareError
pub struct ShareError { /* fields hidden */ }
Documentation
An error returned from “share” operations.
This structure wraps a CURLSHcode
.
Implementations
impl ShareError
pub fn new(code: curl_sys::CURLSHcode) -> ShareError
Creates a new error from the underlying code returned by libcurl.
pub fn is_bad_option(&Self) -> bool
Returns whether this error corresponds to CURLSHE_BAD_OPTION.
pub fn is_in_use(&Self) -> bool
Returns whether this error corresponds to CURLSHE_IN_USE.
pub fn is_invalid(&Self) -> bool
Returns whether this error corresponds to CURLSHE_INVALID.
pub fn is_nomem(&Self) -> bool
Returns whether this error corresponds to CURLSHE_NOMEM.
pub fn code(&Self) -> curl_sys::CURLSHcode
Returns the value of the underlying error corresponding to libcurl.
pub fn description(&Self) -> &str
Returns curl’s human-readable version of this error.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T