Enum uriparse::scheme::InvalidScheme [−][src]
pub enum InvalidScheme { CannotBeEmpty, ExpectedEOF, InvalidCharacter, MustStartWithAlphabetic, }
An error representing an invalid scheme.
Variants
CannotBeEmpty
The scheme component was empty.
ExpectedEOF
This error occurs when the string from which the scheme is parsed is not entirely consumed
during the parsing. For example, parsing the string "http:"
would generate
this error since ":"
would still be left over.
This only applies to the [Scheme::try_from
] functions.
InvalidCharacter
The scheme contained an invalid scheme character.
MustStartWithAlphabetic
The scheme did not start with an alphabetic character.
Trait Implementations
impl Clone for InvalidScheme
[src]
impl Clone for InvalidScheme
fn clone(&self) -> InvalidScheme
[src]
fn clone(&self) -> InvalidScheme
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 InvalidScheme
[src]
impl Copy for InvalidScheme
impl Debug for InvalidScheme
[src]
impl Debug for InvalidScheme
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 InvalidScheme
[src]
impl Eq for InvalidScheme
impl Hash for InvalidScheme
[src]
impl Hash for InvalidScheme
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 InvalidScheme
[src]
impl PartialEq for InvalidScheme
fn eq(&self, other: &InvalidScheme) -> bool
[src]
fn eq(&self, other: &InvalidScheme) -> 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 InvalidScheme
[src]
impl Display for InvalidScheme
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 InvalidScheme
[src]
impl Error for InvalidScheme
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 InvalidScheme
[src]
impl From<!> for InvalidScheme
impl From<InvalidScheme> for InvalidURI
[src]
impl From<InvalidScheme> for InvalidURI
fn from(value: InvalidScheme) -> Self
[src]
fn from(value: InvalidScheme) -> 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 InvalidScheme
impl Send for InvalidScheme
impl Sync for InvalidScheme
impl Sync for InvalidScheme