Enum penguin::ProxyTargetParseError [−][src]
#[non_exhaustive] pub enum ProxyTargetParseError { InvalidUri(InvalidUri), HasPath, MissingScheme, MissingAuthority, }
Expand description
Error that can occur when parsing a ProxyTarget
from a string.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidUri(InvalidUri)
The string could not be parsed as http::Uri
.
The parsed URL has a path, but a proxy target must not have a path.
The URI does not have a scheme (‘http’ or ‘https’) specified when it should have.
The URI does not have an authority (≈ “host”), but it needs one.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ProxyTargetParseError
impl Send for ProxyTargetParseError
impl Sync for ProxyTargetParseError
impl Unpin for ProxyTargetParseError
impl UnwindSafe for ProxyTargetParseError