Enum gotham_formdata::Error [−][src]
#[non_exhaustive] pub enum Error<Err: Error + 'static> {}Show variants
IllegalBody(Error), IllegalContentType(FromStrError), IllegalContentTypeValue(ToStrError), IllegalField(String, Error), InvalidData(Err), IoError(Error), MissingBoundary, MissingContentType, MissingContentDisposition, MissingField(String), MultipartError(Error), UnknownContentType(Mime), UnknownField(String),
Expand description
This error type is used when parsing form data from a request body was unsuccessful.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
The body of the request could not be read.
IllegalContentType(FromStrError)
The content type of the body was not a valid mime type.
IllegalContentTypeValue(ToStrError)
The content type of the body contained unreadable bytes.
The value of a field could not be parsed into that field’s type.
The body was parsed but contained data that did not pass validation.
IoError(Error)
An I/O error occured while reading the body.
The body was a multipart body but did not specify a boundary.
The request did not specify a content type.
One of the multipart parts is missing a Content-Disposition
header.
MissingField(String)
The body is missing a required field.
MultipartError(Error)
The multipart format was invalid.
UnknownContentType(Mime)
The body’s content type is not supported.
UnknownField(String)
The body contained a field that was not expected.
Trait Implementations
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
T::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
T::Err: Into<Error>,
[src]fn convert_value<'a>(
name: &'a str,
value: Value<'a, Error<E>>
) -> ConversionFuture<'a, Self, Error<E>>
[src]
fn convert_value<'a>(
name: &'a str,
value: Value<'a, Error<E>>
) -> ConversionFuture<'a, Self, Error<E>>
[src]Perform the conversion.
impl<Err: Error + 'static> Error for Error<Err>
[src]
impl<Err: Error + 'static> Error for Error<Err>
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[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<Err: Error + 'static> From<FromStrError> for Error<Err>
[src]
impl<Err: Error + 'static> From<FromStrError> for Error<Err>
[src]fn from(source: FromStrError) -> Self
[src]
fn from(source: FromStrError) -> Self
[src]Performs the conversion.
impl<Err: Error + 'static> From<ToStrError> for Error<Err>
[src]
impl<Err: Error + 'static> From<ToStrError> for Error<Err>
[src]fn from(source: ToStrError) -> Self
[src]
fn from(source: ToStrError) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl<Err> !RefUnwindSafe for Error<Err>
impl<Err> Send for Error<Err> where
Err: Send,
Err: Send,
impl<Err> Sync for Error<Err> where
Err: Sync,
Err: Sync,
impl<Err> Unpin for Error<Err> where
Err: Unpin,
Err: Unpin,
impl<Err> !UnwindSafe for Error<Err>
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<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
T: FromStr,
E: Error,
<T as FromStr>::Err: Into<Error>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,