Struct curl::FormError [] [src]

pub struct FormError {
    // some fields omitted
}

An error from "form add" operations.

THis structure wraps a CURLFORMcode.

Methods

impl FormError
[src]

fn new(code: CURLFORMcode) -> FormError

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

fn is_memory(&self) -> bool

Returns whether this error corresponds to CURL_FORMADD_MEMORY.

fn is_option_twice(&self) -> bool

Returns whether this error corresponds to CURL_FORMADD_OPTION_TWICE.

fn is_null(&self) -> bool

Returns whether this error corresponds to CURL_FORMADD_NULL.

fn is_unknown_option(&self) -> bool

Returns whether this error corresponds to CURL_FORMADD_UNKNOWN_OPTION.

fn is_incomplete(&self) -> bool

Returns whether this error corresponds to CURL_FORMADD_INCOMPLETE.

fn is_illegal_array(&self) -> bool

Returns whether this error corresponds to CURL_FORMADD_ILLEGAL_ARRAY.

fn is_disabled(&self) -> bool

Returns whether this error corresponds to CURL_FORMADD_DISABLED.

fn code(&self) -> CURLFORMcode

Returns the value of the underlying error corresponding to libcurl.

Trait Implementations

impl PartialEq for FormError
[src]

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

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

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

This method tests for !=.

impl Clone for FormError
[src]

fn clone(&self) -> FormError

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 FormError
[src]

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

Formats the value using the given formatter.

impl Debug for FormError
[src]

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

Formats the value using the given formatter.

impl Error for FormError
[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