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