Enum uriparse::uri::InvalidURIReference [−][src]
pub enum InvalidURIReference { AbsolutePathCannotStartWithTwoSlashes, InvalidAuthority(InvalidAuthority), InvalidFragment(InvalidFragment), InvalidPath(InvalidPath), InvalidQuery(InvalidQuery), InvalidScheme(InvalidScheme), MissingPath, SchemelessPathCannotStartWithColonSegment, }
An error representing an invalid URI reference.
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.
URIReference::from_parts
).
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 URIReferenceBuilder
.
SchemelessPathCannotStartWithColonSegment
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 TryFrom<InvalidURIReference> for InvalidRelativeReference
[src]
impl TryFrom<InvalidURIReference> for InvalidRelativeReference
type Error = ()
try_from
)The type returned in the event of a conversion error.
fn try_from(value: InvalidURIReference) -> Result<Self, Self::Error>
[src]
fn try_from(value: InvalidURIReference) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl TryFrom<InvalidURIReference> for InvalidURI
[src]
impl TryFrom<InvalidURIReference> for InvalidURI
type Error = ()
try_from
)The type returned in the event of a conversion error.
fn try_from(value: InvalidURIReference) -> Result<Self, Self::Error>
[src]
fn try_from(value: InvalidURIReference) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl Clone for InvalidURIReference
[src]
impl Clone for InvalidURIReference
fn clone(&self) -> InvalidURIReference
[src]
fn clone(&self) -> InvalidURIReference
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 InvalidURIReference
[src]
impl Debug for InvalidURIReference
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 InvalidURIReference
[src]
impl Eq for InvalidURIReference
impl Hash for InvalidURIReference
[src]
impl Hash for InvalidURIReference
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 InvalidURIReference
[src]
impl PartialEq for InvalidURIReference
fn eq(&self, other: &InvalidURIReference) -> bool
[src]
fn eq(&self, other: &InvalidURIReference) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &InvalidURIReference) -> bool
[src]
fn ne(&self, other: &InvalidURIReference) -> bool
This method tests for !=
.
impl Display for InvalidURIReference
[src]
impl Display for InvalidURIReference
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 InvalidURIReference
[src]
impl Error for InvalidURIReference
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 InvalidURIReference
[src]
impl From<!> for InvalidURIReference
impl From<InvalidAuthority> for InvalidURIReference
[src]
impl From<InvalidAuthority> for InvalidURIReference
fn from(value: InvalidAuthority) -> Self
[src]
fn from(value: InvalidAuthority) -> Self
Performs the conversion.
impl From<InvalidFragment> for InvalidURIReference
[src]
impl From<InvalidFragment> for InvalidURIReference
fn from(value: InvalidFragment) -> Self
[src]
fn from(value: InvalidFragment) -> Self
Performs the conversion.
impl From<InvalidPath> for InvalidURIReference
[src]
impl From<InvalidPath> for InvalidURIReference
fn from(value: InvalidPath) -> Self
[src]
fn from(value: InvalidPath) -> Self
Performs the conversion.
impl From<InvalidQuery> for InvalidURIReference
[src]
impl From<InvalidQuery> for InvalidURIReference
fn from(value: InvalidQuery) -> Self
[src]
fn from(value: InvalidQuery) -> Self
Performs the conversion.
impl From<InvalidScheme> for InvalidURIReference
[src]
impl From<InvalidScheme> for InvalidURIReference
fn from(value: InvalidScheme) -> Self
[src]
fn from(value: InvalidScheme) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for InvalidURIReference
impl Send for InvalidURIReference
impl Sync for InvalidURIReference
impl Sync for InvalidURIReference