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
AbsolutePathCannotStartWithTwoSlashes
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
).
CannotBeURI
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.
InvalidAuthority(InvalidAuthority)
The authority component of the relative reference was invalid.
InvalidFragment(InvalidFragment)
The fragment component of the relative reference was invalid.
InvalidPath(InvalidPath)
The path component of the relative reference was invalid.
InvalidQuery(InvalidQuery)
The query 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 RelativeReferenceBuilder
.
SchemelessPathCannotStartWithColonSegment
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]
impl Clone for InvalidRelativeReference
fn clone(&self) -> InvalidRelativeReference
[src]
fn clone(&self) -> InvalidRelativeReference
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for InvalidRelativeReference
[src]
impl Debug for InvalidRelativeReference
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for InvalidRelativeReference
[src]
impl Eq for InvalidRelativeReference
impl Hash for InvalidRelativeReference
[src]
impl Hash for InvalidRelativeReference
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for InvalidRelativeReference
[src]
impl PartialEq for InvalidRelativeReference
fn eq(&self, other: &InvalidRelativeReference) -> bool
[src]
fn eq(&self, other: &InvalidRelativeReference) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &InvalidRelativeReference) -> bool
[src]
fn ne(&self, other: &InvalidRelativeReference) -> bool
This method tests for !=
.
impl Display for InvalidRelativeReference
[src]
impl Display for InvalidRelativeReference
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for InvalidRelativeReference
[src]
impl Error for InvalidRelativeReference
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl TryFrom<InvalidURIReference> for InvalidRelativeReference
[src]
impl TryFrom<InvalidURIReference> for InvalidRelativeReference
Auto Trait Implementations
impl Send for InvalidRelativeReference
impl Send for InvalidRelativeReference
impl Sync for InvalidRelativeReference
impl Sync for InvalidRelativeReference