Enum uriparse::uri::InvalidURI[][src]

pub enum InvalidURI {
    AbsolutePathCannotStartWithTwoSlashes,
    CannotBeRelativeReference,
    InvalidAuthority(InvalidAuthority),
    InvalidFragment(InvalidFragment),
    InvalidPath(InvalidPath),
    InvalidQuery(InvalidQuery),
    InvalidScheme(InvalidScheme),
    MissingPath,
    MissingScheme,
}

An error representing an invalid URI.

Variants

Represents the case when there is no authority, but the first path segment starts with "//". This is not allowed because it would be interpreted as an authority component.

This can only occur when using creation functions that act on individual parts (e.g. URI::from_parts).

When parsing from some byte string source, if the source ends up being a relative reference, then it is obviously not a URI.

This can only occur when parsing from a byte string source.

The authority component of the relative reference was invalid.

The fragment component of the relative reference was invalid.

The path component of the relative reference was invalid.

The query component of the relative reference was invalid.

The scheme component of the relative reference was invalid.

This error occurs when you do not specify a path component on the builder.

This can only occur when using URIBuilder.

This error occurs when you do not specify a scheme component on the builder.

This can only occur when using URIBuilder.

Trait Implementations

impl Clone for InvalidURI
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for InvalidURI
[src]

Formats the value using the given formatter. Read more

impl Eq for InvalidURI
[src]

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

Formats the value using the given formatter. Read more

impl Error for InvalidURI
[src]

This method is soft-deprecated. Read more

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

impl From<!> for InvalidURI
[src]

Performs the conversion.

impl TryFrom<InvalidURIReference> for InvalidURI
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

Auto Trait Implementations

impl Send for InvalidURI

impl Sync for InvalidURI