Enum uriparse::query::InvalidQuery [−][src]
pub enum InvalidQuery { ExpectedEOF, InvalidCharacter, InvalidPercentEncoding, }
An error representing an invalid query.
Variants
ExpectedEOF
This error occurs when the string from which the query is parsed is not entirely consumed
during the parsing. For example, parsing the string "my=query#fragment"
would generate
this error since "#fragment"
would still be left over.
This only applies to the [Query::try_from
] functions.
InvalidCharacter
The fragment contained an invalid character.
InvalidPercentEncoding
The fragment contained an invalid percent encoding (e.g. "%ZZ"
).
Trait Implementations
impl Clone for InvalidQuery
[src]
impl Clone for InvalidQuery
fn clone(&self) -> InvalidQuery
[src]
fn clone(&self) -> InvalidQuery
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for InvalidQuery
[src]
impl Copy for InvalidQuery
impl Debug for InvalidQuery
[src]
impl Debug for InvalidQuery
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for InvalidQuery
[src]
impl Eq for InvalidQuery
impl Hash for InvalidQuery
[src]
impl Hash for InvalidQuery
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for InvalidQuery
[src]
impl PartialEq for InvalidQuery
fn eq(&self, other: &InvalidQuery) -> bool
[src]
fn eq(&self, other: &InvalidQuery) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Display for InvalidQuery
[src]
impl Display for InvalidQuery
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for InvalidQuery
[src]
impl Error for InvalidQuery
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<!> for InvalidQuery
[src]
impl From<!> for InvalidQuery
impl From<InvalidQuery> for InvalidURIReference
[src]
impl From<InvalidQuery> for InvalidURIReference
fn from(value: InvalidQuery) -> Self
[src]
fn from(value: InvalidQuery) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for InvalidQuery
impl Send for InvalidQuery
impl Sync for InvalidQuery
impl Sync for InvalidQuery