[−][src]Enum gotham_formdata::Error
This error type is used when parsing form data from a request body was unsuccessful.
Variants (Non-exhaustive)
IllegalBody(Error)
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]
E: Error,
T: FromStr,
T::Err: Into<Error>,
pub fn convert_value<'a>(
name: &'a str,
value: Value<'a, Error<E>>
) -> ConversionFuture<'a, Self, Error<E>>
[src]
name: &'a str,
value: Value<'a, Error<E>>
) -> ConversionFuture<'a, Self, Error<E>>
impl<Err: Debug + Error + 'static> Debug for Error<Err>
[src]
impl<Err: Error + 'static> Display for Error<Err>
[src]
impl<Err: Error + 'static> Error for Error<Err>
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<Err: Error + 'static> From<Error> for Error<Err>
[src]
impl<Err: Error + 'static> From<Error> for Error<Err>
[src]
impl<Err: Error + 'static> From<Error> for Error<Err>
[src]
impl<Err: Error + 'static> From<FromStrError> for Error<Err>
[src]
pub fn from(source: FromStrError) -> Self
[src]
impl<Err: Error + 'static> From<ToStrError> for Error<Err>
[src]
pub fn from(source: ToStrError) -> Self
[src]
Auto Trait Implementations
impl<Err> !RefUnwindSafe for Error<Err>
[src]
impl<Err> Send for Error<Err> where
Err: Send,
[src]
Err: Send,
impl<Err> Sync for Error<Err> where
Err: Sync,
[src]
Err: Sync,
impl<Err> Unpin for Error<Err> where
Err: Unpin,
[src]
Err: Unpin,
impl<Err> !UnwindSafe for Error<Err>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<E, T> ConvertFromStr<Error<E>> for T where
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
[src]
E: Error,
T: FromStr,
<T as FromStr>::Err: Into<Error>,
pub fn convert_value(
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
[src]
&'a str,
Value<'a, Error<E>>
) -> Pin<Box<dyn Future<Output = Result<T, Error<E>>> + 'a + Send, Global>>
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> 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, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,