Enum uriparse::uri::InvalidRelativeReference[][src]

pub enum InvalidRelativeReference {
    AbsolutePathCannotStartWithTwoSlashes,
    CannotBeURI,
    InvalidAuthority(InvalidAuthority),
    InvalidFragment(InvalidFragment),
    InvalidPath(InvalidPath),
    InvalidQuery(InvalidQuery),
    MissingPath,
    SchemelessPathCannotStartWithColonSegment,
}

An error representing an invalid relative reference.

Variants

Represents the case where 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. RelativeReference::from_parts).

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

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.

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

This can only occur when using RelativeReferenceBuilder.

Represents the case where the first path segment contains a ':'. This is not allowed because it would be interpreted as a scheme component.

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

Trait Implementations

impl Clone for InvalidRelativeReference
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for InvalidRelativeReference
[src]

Formats the value using the given formatter. Read more

impl Eq for InvalidRelativeReference
[src]

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

Formats the value using the given formatter. Read more

impl Error for InvalidRelativeReference
[src]

This method is soft-deprecated. Read more

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

impl From<!> for InvalidRelativeReference
[src]

Performs the conversion.

impl From<InvalidAuthority> for InvalidRelativeReference
[src]

Performs the conversion.

impl From<InvalidFragment> for InvalidRelativeReference
[src]

Performs the conversion.

impl From<InvalidPath> for InvalidRelativeReference
[src]

Performs the conversion.

impl From<InvalidQuery> for InvalidRelativeReference
[src]

Performs the conversion.

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.

Auto Trait Implementations