Enum uriparse::uri::InvalidURIReference[][src]

pub enum InvalidURIReference {
    AbsolutePathCannotStartWithTwoSlashes,
    InvalidAuthority(InvalidAuthority),
    InvalidFragment(InvalidFragment),
    InvalidPath(InvalidPath),
    InvalidQuery(InvalidQuery),
    InvalidScheme(InvalidScheme),
    MissingPath,
    SchemelessPathCannotStartWithColonSegment,
}

An error representing an invalid URI reference.

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. URIReference::from_parts).

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 URIReferenceBuilder.

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. URIReference::from_parts).

Trait Implementations

impl TryFrom<InvalidURIReference> for InvalidRelativeReference
[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.

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.

impl Clone for InvalidURIReference
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for InvalidURIReference
[src]

Formats the value using the given formatter. Read more

impl Eq for InvalidURIReference
[src]

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

Formats the value using the given formatter. Read more

impl Error for InvalidURIReference
[src]

This method is soft-deprecated. Read more

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

impl From<!> for InvalidURIReference
[src]

Performs the conversion.

impl From<InvalidAuthority> for InvalidURIReference
[src]

Performs the conversion.

impl From<InvalidFragment> for InvalidURIReference
[src]

Performs the conversion.

impl From<InvalidPath> for InvalidURIReference
[src]

Performs the conversion.

impl From<InvalidQuery> for InvalidURIReference
[src]

Performs the conversion.

impl From<InvalidScheme> for InvalidURIReference
[src]

Performs the conversion.

Auto Trait Implementations