Struct curl::FormError
pub struct FormError { /* fields hidden */ }
Documentation
An error from “form add” operations.
THis structure wraps a CURLFORMcode
.
Implementations
impl FormError
pub fn new(code: curl_sys::CURLFORMcode) -> FormError
Creates a new error from the underlying code returned by libcurl.
pub fn is_memory(&Self) -> bool
Returns whether this error corresponds to CURL_FORMADD_MEMORY.
pub fn is_option_twice(&Self) -> bool
Returns whether this error corresponds to CURL_FORMADD_OPTION_TWICE.
pub fn is_null(&Self) -> bool
Returns whether this error corresponds to CURL_FORMADD_NULL.
pub fn is_unknown_option(&Self) -> bool
Returns whether this error corresponds to CURL_FORMADD_UNKNOWN_OPTION.
pub fn is_incomplete(&Self) -> bool
Returns whether this error corresponds to CURL_FORMADD_INCOMPLETE.
pub fn is_illegal_array(&Self) -> bool
Returns whether this error corresponds to CURL_FORMADD_ILLEGAL_ARRAY.
pub fn is_disabled(&Self) -> bool
Returns whether this error corresponds to CURL_FORMADD_DISABLED.
pub fn code(&Self) -> curl_sys::CURLFORMcode
Returns the value of the underlying error corresponding to libcurl.
pub fn description(&Self) -> &str
Returns a human-readable description of this error code.
Trait Implementations
impl Debug for FormError
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Display for FormError
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl StructuralPartialEq for FormError
Auto Trait Implementations
impl RefUnwindSafe for FormError
impl UnwindSafe for FormError
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T