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
.
Tuple Fields of InvalidUri
0: InvalidUri
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
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more