Struct curl::ShareError [] [src]

pub struct ShareError {
    // some fields omitted
}

An error returned from "share" operations.

This structure wraps a CURLSHcode.

Methods

impl ShareError

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 Display for ShareError

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

impl Debug for ShareError

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

impl Error for ShareError

fn description(&self) -> &str

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

Derived Implementations

impl PartialEq for ShareError

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

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

impl Clone for ShareError

fn clone(&self) -> ShareError

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