Enum ttfb::InvalidUrlError
source · pub enum InvalidUrlError {
MissingInput,
WrongFormat(String),
WrongScheme,
Other,
}Expand description
Errors during URL parsing.
Variants§
MissingInput
No input was provided. Provide a URL, such as https://example.com or https://1.2.3.4:443.
WrongFormat(String)
The URL is illegal.
WrongScheme
This tools only supports http and https.
Other
Other unknown error.
Trait Implementations§
source§impl Debug for InvalidUrlError
impl Debug for InvalidUrlError
source§impl Display for InvalidUrlError
impl Display for InvalidUrlError
source§impl Error for InvalidUrlError
impl Error for InvalidUrlError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()