Enum uriparse::scheme::InvalidScheme[][src]

pub enum InvalidScheme {
    CannotBeEmpty,
    ExpectedEOF,
    InvalidCharacter,
    MustStartWithAlphabetic,
}

An error representing an invalid scheme.

Variants

The scheme component was empty.

This error occurs when the string from which the scheme is parsed is not entirely consumed during the parsing. For example, parsing the string "http:" would generate this error since ":" would still be left over.

This only applies to the [Scheme::try_from] functions.

The scheme contained an invalid scheme character.

The scheme did not start with an alphabetic character.

Trait Implementations

impl Clone for InvalidScheme
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for InvalidScheme
[src]

impl Debug for InvalidScheme
[src]

Formats the value using the given formatter. Read more

impl Eq for InvalidScheme
[src]

impl Hash for InvalidScheme
[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 InvalidScheme
[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 InvalidScheme
[src]

Formats the value using the given formatter. Read more

impl Error for InvalidScheme
[src]

This method is soft-deprecated. Read more

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

impl From<!> for InvalidScheme
[src]

Performs the conversion.

impl From<InvalidScheme> for InvalidURI
[src]

Performs the conversion.

impl From<InvalidScheme> for InvalidURIReference
[src]

Performs the conversion.

Auto Trait Implementations