[−][src]Enum formdata::Error
An error type for the formdata
crate.
Variants
NoRequestContentType
The Hyper request did not have a Content-Type header.
NotMultipart
The Hyper request Content-Type top-level Mime was not Multipart
.
NotFormData
The Hyper request Content-Type sub-level Mime was not FormData
.
BoundaryNotSpecified
The Content-Type header failed to specify boundary token.
PartialHeaders
A multipart section contained only partial headers.
MissingDisposition
A multipart section did not have the required Content-Disposition header.
InvalidDisposition
A multipart section did not have a valid corresponding Content-Disposition.
NoName
A multipart section Content-Disposition header failed to specify a name.
Eof
The request body ended prior to reaching the expected terminating boundary.
Httparse(Error)
An HTTP parsing error from a multipart section.
Io(Error)
An I/O error.
Hyper(Error)
An error was returned from Hyper.
Utf8(FromUtf8Error)
An error occurred during UTF-8 processing.
Decoding(Cow<'static, str>)
An error occurred during character decoding
Multipart(Error)
A MIME multipart error
NotAFile
Filepart is not a file
Trait Implementations
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<FromUtf8Error> for Error
[src]
fn from(err: FromUtf8Error) -> Error
[src]
impl From<Error> for Error
[src]
impl Display for Error
[src]
impl Debug for Error
[src]
impl Error for Error
[src]
fn description(&self) -> &str
[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
The lower-level source of this error, if any. Read more
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,