Enum uriparse::path::InvalidPath [−][src]
pub enum InvalidPath { ExpectedEOF, InvalidCharacter, InvalidPercentEncoding, }
An error representing an invalid path.
Variants
ExpectedEOF
This error occurs when the string from which the path is parsed is not entirely consumed
during the parsing. For example, parsing the string "/my/path?query"
would generate
this error since "?query"
would still be left over.
This only applies to the [Path::try_from
] functions.
InvalidCharacter
The path contained an invalid character.
InvalidPercentEncoding
The path contained an invalid percent encoding (e.g. "%ZZ"
).
Trait Implementations
impl Clone for InvalidPath
[src]
impl Clone for InvalidPath
fn clone(&self) -> InvalidPath
[src]
fn clone(&self) -> InvalidPath
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 Copy for InvalidPath
[src]
impl Copy for InvalidPath
impl Debug for InvalidPath
[src]
impl Debug for InvalidPath
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 InvalidPath
[src]
impl Eq for InvalidPath
impl Hash for InvalidPath
[src]
impl Hash for InvalidPath
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 InvalidPath
[src]
impl PartialEq for InvalidPath
fn eq(&self, other: &InvalidPath) -> bool
[src]
fn eq(&self, other: &InvalidPath) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Display for InvalidPath
[src]
impl Display for InvalidPath
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 InvalidPath
[src]
impl Error for InvalidPath
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 InvalidPath
[src]
impl From<!> for InvalidPath
impl From<InvalidPath> for InvalidRelativeReference
[src]
impl From<InvalidPath> for InvalidRelativeReference
fn from(value: InvalidPath) -> Self
[src]
fn from(value: InvalidPath) -> Self
Performs the conversion.
impl From<InvalidPath> for InvalidURI
[src]
impl From<InvalidPath> for InvalidURI
fn from(value: InvalidPath) -> Self
[src]
fn from(value: InvalidPath) -> 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.
Auto Trait Implementations
impl Send for InvalidPath
impl Send for InvalidPath
impl Sync for InvalidPath
impl Sync for InvalidPath