#[non_exhaustive]pub enum URIReferenceError {
AbsolutePathStartsWithTwoSlashes,
Authority(AuthorityError),
Fragment(FragmentError),
MissingPath,
Path(PathError),
Query(QueryError),
Scheme(SchemeError),
SchemelessPathStartsWithColonSegment,
}Expand description
An error representing an invalid URI reference.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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§
Source§impl Clone for URIReferenceError
impl Clone for URIReferenceError
Source§fn clone(&self) -> URIReferenceError
fn clone(&self) -> URIReferenceError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more