Struct curl::FormError [−][src]
pub struct FormError { /* fields omitted */ }
Expand description
An error from “form add” operations.
THis structure wraps a CURLFORMcode
.
Implementations
impl FormError
[src]
impl FormError
[src]pub fn new(code: CURLFORMcode) -> FormError
[src]
pub fn new(code: CURLFORMcode) -> FormError
[src]Creates a new error from the underlying code returned by libcurl.
pub fn is_option_twice(&self) -> bool
[src]
pub fn is_option_twice(&self) -> bool
[src]Returns whether this error corresponds to CURL_FORMADD_OPTION_TWICE.
pub fn is_unknown_option(&self) -> bool
[src]
pub fn is_unknown_option(&self) -> bool
[src]Returns whether this error corresponds to CURL_FORMADD_UNKNOWN_OPTION.
pub fn is_incomplete(&self) -> bool
[src]
pub fn is_incomplete(&self) -> bool
[src]Returns whether this error corresponds to CURL_FORMADD_INCOMPLETE.
pub fn is_illegal_array(&self) -> bool
[src]
pub fn is_illegal_array(&self) -> bool
[src]Returns whether this error corresponds to CURL_FORMADD_ILLEGAL_ARRAY.
pub fn is_disabled(&self) -> bool
[src]
pub fn is_disabled(&self) -> bool
[src]Returns whether this error corresponds to CURL_FORMADD_DISABLED.
pub fn code(&self) -> CURLFORMcode
[src]
pub fn code(&self) -> CURLFORMcode
[src]Returns the value of the underlying error corresponding to libcurl.
pub fn description(&self) -> &str
[src]
pub fn description(&self) -> &str
[src]Returns a human-readable description of this error code.
Trait Implementations
impl Error for FormError
[src]
impl Error for FormError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl StructuralPartialEq for FormError
[src]
Auto Trait Implementations
impl RefUnwindSafe for FormError
impl Send for FormError
impl Sync for FormError
impl Unpin for FormError
impl UnwindSafe for FormError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more