Struct curl::ShareError [] [src]

pub struct ShareError {
    // some fields omitted
}

An error returned from "share" operations.

This structure wraps a CURLSHcode.

Methods

impl ShareError
[src]

fn new(code: CURLSHcode) -> ShareError

Creates a new error from the underlying code returned by libcurl.

fn is_bad_option(&self) -> bool

Returns whether this error corresponds to CURLSHE_BAD_OPTION.

fn is_in_use(&self) -> bool

Returns whether this error corresponds to CURLSHE_IN_USE.

fn is_invalid(&self) -> bool

Returns whether this error corresponds to CURLSHE_INVALID.

fn is_nomem(&self) -> bool

Returns whether this error corresponds to CURLSHE_NOMEM.

fn code(&self) -> CURLSHcode

Returns the value of the underlying error corresponding to libcurl.

Trait Implementations

impl PartialEq for ShareError
[src]

fn eq(&self, __arg_0: &ShareError) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ShareError) -> bool

This method tests for !=.

impl Clone for ShareError
[src]

fn clone(&self) -> ShareError

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Display for ShareError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Debug for ShareError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for ShareError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

The lower-level cause of this error, if any. Read more