Enum uriparse::query::InvalidQuery[][src]

pub enum InvalidQuery {
    ExpectedEOF,
    InvalidCharacter,
    InvalidPercentEncoding,
}

An error representing an invalid query.

Variants

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.

The fragment contained an invalid character.

The fragment contained an invalid percent encoding (e.g. "%ZZ").

Trait Implementations

impl Clone for InvalidQuery
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for InvalidQuery
[src]

impl Debug for InvalidQuery
[src]

Formats the value using the given formatter. Read more

impl Eq for InvalidQuery
[src]

impl Hash for InvalidQuery
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for InvalidQuery
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for InvalidQuery
[src]

Formats the value using the given formatter. Read more

impl Error for InvalidQuery
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl From<!> for InvalidQuery
[src]

Performs the conversion.

impl From<InvalidQuery> for InvalidURIReference
[src]

Performs the conversion.

Auto Trait Implementations