Struct curl::ShareError
[−]
[src]
pub struct ShareError { /* fields omitted */ }
An error returned from "share" operations.
This structure wraps a CURLSHcode
.
Methods
impl ShareError
[src]
pub fn new(code: CURLSHcode) -> ShareError
[src]
Creates a new error from the underlying code returned by libcurl.
pub fn is_bad_option(&self) -> bool
[src]
Returns whether this error corresponds to CURLSHE_BAD_OPTION.
pub fn is_in_use(&self) -> bool
[src]
Returns whether this error corresponds to CURLSHE_IN_USE.
pub fn is_invalid(&self) -> bool
[src]
Returns whether this error corresponds to CURLSHE_INVALID.
pub fn is_nomem(&self) -> bool
[src]
Returns whether this error corresponds to CURLSHE_NOMEM.
pub fn code(&self) -> CURLSHcode
[src]
Returns the value of the underlying error corresponding to libcurl.
Trait Implementations
impl Clone for ShareError
[src]
fn clone(&self) -> ShareError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for ShareError
[src]
fn eq(&self, __arg_0: &ShareError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ShareError) -> bool
[src]
This method tests for !=
.
impl Display for ShareError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Debug for ShareError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for ShareError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl From<ShareError> for Error
[src]
fn from(e: ShareError) -> Error
[src]
Performs the conversion.