[][src]Enum uriparse::uri_reference::URIReferenceError

#[non_exhaustive]pub enum URIReferenceError {
    AbsolutePathStartsWithTwoSlashes,
    Authority(AuthorityError),
    Fragment(FragmentError),
    MissingPath,
    Path(PathError),
    Query(QueryError),
    Scheme(SchemeError),
    SchemelessPathStartsWithColonSegment,
}

An error representing an invalid URI reference.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AbsolutePathStartsWithTwoSlashes

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

Authority(AuthorityError)

The authority component of the relative reference was invalid.

Fragment(FragmentError)

The fragment component of the relative reference was invalid.

MissingPath

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

This can only occur when using URIReferenceBuilder.

Path(PathError)

The path component of the relative reference was invalid.

Query(QueryError)

The query component of the relative reference was invalid.

Scheme(SchemeError)

The scheme component of the relative reference was invalid.

SchemelessPathStartsWithColonSegment

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 Clone for URIReferenceError[src]

impl Copy for URIReferenceError[src]

impl Debug for URIReferenceError[src]

impl Display for URIReferenceError[src]

impl Eq for URIReferenceError[src]

impl Error for URIReferenceError[src]

impl From<AuthorityError> for URIReferenceError[src]

impl From<FragmentError> for URIReferenceError[src]

impl From<Infallible> for URIReferenceError[src]

impl From<PathError> for URIReferenceError[src]

impl From<QueryError> for URIReferenceError[src]

impl From<SchemeError> for URIReferenceError[src]

impl Hash for URIReferenceError[src]

impl PartialEq<URIReferenceError> for URIReferenceError[src]

impl StructuralEq for URIReferenceError[src]

impl StructuralPartialEq for URIReferenceError[src]

impl TryFrom<URIReferenceError> for RelativeReferenceError[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<URIReferenceError> for URIError[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.