Enum penguin::ProxyTargetParseError
source · #[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
.
HasPath
The parsed URL has a path, but a proxy target must not have a path.
MissingScheme
The URI does not have a scheme (‘http’ or ‘https’) specified when it should have.
MissingAuthority
The URI does not have an authority (≈ “host”), but it needs one.
Trait Implementations§
source§impl Debug for ProxyTargetParseError
impl Debug for ProxyTargetParseError
source§impl Display for ProxyTargetParseError
impl Display for ProxyTargetParseError
source§impl Error for ProxyTargetParseError
impl Error for ProxyTargetParseError
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()
source§impl From<InvalidUri> for ProxyTargetParseError
impl From<InvalidUri> for ProxyTargetParseError
source§fn from(source: InvalidUri) -> Self
fn from(source: InvalidUri) -> Self
Converts to this type from the input type.
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more