pub enum UrlDecodingError {
BodyError(BodyError),
EmptyQuery,
}Expand description
An error representing the two possible errors that can occur during URL decoding.
The first and probably most common one is for the query to be empty, and that goes for both body and url queries.
The second type of error that can occur is that something goes wrong when parsing the request body.
Variants§
BodyError(BodyError)
An error parsing the request body
EmptyQuery
An empty query string, either in body or url query
Trait Implementations§
Source§impl Debug for UrlDecodingError
impl Debug for UrlDecodingError
Source§impl Display for UrlDecodingError
impl Display for UrlDecodingError
Source§impl Error for UrlDecodingError
impl Error for UrlDecodingError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations§
impl Freeze for UrlDecodingError
impl !RefUnwindSafe for UrlDecodingError
impl Send for UrlDecodingError
impl Sync for UrlDecodingError
impl Unpin for UrlDecodingError
impl !UnwindSafe for UrlDecodingError
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
Source§impl<T> PersistentInto<Arc<Mutex<T>>> for T
impl<T> PersistentInto<Arc<Mutex<T>>> for T
Source§fn persistent_into(self) -> Arc<Mutex<T>>
fn persistent_into(self) -> Arc<Mutex<T>>
Convert
self into a value of type T.Source§impl<T> PersistentInto<Arc<RwLock<T>>> for T
impl<T> PersistentInto<Arc<RwLock<T>>> for T
Source§fn persistent_into(self) -> Arc<RwLock<T>>
fn persistent_into(self) -> Arc<RwLock<T>>
Convert
self into a value of type T.Source§impl<T> PersistentInto<Arc<T>> for T
impl<T> PersistentInto<Arc<T>> for T
Source§fn persistent_into(self) -> Arc<T>
fn persistent_into(self) -> Arc<T>
Convert
self into a value of type T.Source§impl<T> PersistentInto<T> for T
impl<T> PersistentInto<T> for T
Source§fn persistent_into(self) -> T
fn persistent_into(self) -> T
Convert
self into a value of type T.