Enum uriparse::uri::InvalidURI [−][src]
pub enum InvalidURI { AbsolutePathCannotStartWithTwoSlashes, CannotBeRelativeReference, InvalidAuthority(InvalidAuthority), InvalidFragment(InvalidFragment), InvalidPath(InvalidPath), InvalidQuery(InvalidQuery), InvalidScheme(InvalidScheme), MissingPath, MissingScheme, }
An error representing an invalid URI.
Variants
AbsolutePathCannotStartWithTwoSlashes
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.
URI::from_parts
).
CannotBeRelativeReference
When parsing from some byte string source, if the source ends up being a relative reference, then it is obviously not a URI.
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.
InvalidScheme(InvalidScheme)
The scheme 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 URIBuilder
.
MissingScheme
This error occurs when you do not specify a scheme component on the builder.
This can only occur when using URIBuilder
.
Trait Implementations
impl Clone for InvalidURI
[src]
impl Clone for InvalidURI
fn clone(&self) -> InvalidURI
[src]
fn clone(&self) -> InvalidURI
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 InvalidURI
[src]
impl Debug for InvalidURI
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 InvalidURI
[src]
impl Eq for InvalidURI
impl Hash for InvalidURI
[src]
impl Hash for InvalidURI
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 InvalidURI
[src]
impl PartialEq for InvalidURI
fn eq(&self, other: &InvalidURI) -> bool
[src]
fn eq(&self, other: &InvalidURI) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &InvalidURI) -> bool
[src]
fn ne(&self, other: &InvalidURI) -> bool
This method tests for !=
.
impl Display for InvalidURI
[src]
impl Display for InvalidURI
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 InvalidURI
[src]
impl Error for InvalidURI
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 From<!> for InvalidURI
[src]
impl From<!> for InvalidURI
impl TryFrom<InvalidURIReference> for InvalidURI
[src]
impl TryFrom<InvalidURIReference> for InvalidURI
Auto Trait Implementations
impl Send for InvalidURI
impl Send for InvalidURI
impl Sync for InvalidURI
impl Sync for InvalidURI