Enum async_graphql::ParseRequestError
source · #[non_exhaustive]pub enum ParseRequestError {
Io(Error),
InvalidRequest(Box<dyn Error + Send + Sync>),
InvalidFilesMap(Box<dyn Error + Send + Sync>),
InvalidMultipart(Error),
MissingOperatorsPart,
MissingMapPart,
NotUpload,
MissingFiles,
PayloadTooLarge,
UnsupportedBatch,
}
Expand description
An error parsing the request.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
An IO error occurred.
InvalidRequest(Box<dyn Error + Send + Sync>)
The request’s syntax was invalid.
InvalidFilesMap(Box<dyn Error + Send + Sync>)
The request’s files map was invalid.
InvalidMultipart(Error)
The request’s multipart data was invalid.
MissingOperatorsPart
Missing “operators” part for multipart request.
MissingMapPart
Missing “map” part for multipart request.
NotUpload
It’s not an upload operation
MissingFiles
Files were missing the request.
PayloadTooLarge
The request’s payload is too large, and this server rejected it.
UnsupportedBatch
The request is a batch request, but the server does not support batch requests.
Trait Implementations§
source§impl Debug for ParseRequestError
impl Debug for ParseRequestError
source§impl Display for ParseRequestError
impl Display for ParseRequestError
source§impl Error for ParseRequestError
impl Error for ParseRequestError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for ParseRequestError
impl From<Error> for ParseRequestError
source§impl From<Error> for ParseRequestError
impl From<Error> for ParseRequestError
source§impl From<FromStrError> for ParseRequestError
impl From<FromStrError> for ParseRequestError
source§fn from(e: FromStrError) -> Self
fn from(e: FromStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseRequestError
impl !RefUnwindSafe for ParseRequestError
impl Send for ParseRequestError
impl Sync for ParseRequestError
impl Unpin for ParseRequestError
impl !UnwindSafe for ParseRequestError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more