pub enum Refused {
Scheme(String),
Credentials,
NoHost,
Address(IpAddr),
Resolved {
host: String,
addr: IpAddr,
},
}Expand description
Why the policy refused a request.
Variants§
Scheme(String)
Not https, and not http to loopback (or, under
Allowance::InternalNetwork, to an internal address or a name).
Credentials
The URL carries a user name or password.
NoHost
The URL has no host.
Address(IpAddr)
An IP-literal host that is not public.
Resolved
A name that resolved to an address the request may not reach: not
public, or, for plain http under InternalNetwork, not internal.
Trait Implementations§
impl Eq for Refused
Source§impl Error for Refused
impl Error for Refused
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Refused> for EgressError
impl From<Refused> for EgressError
Source§fn from(refused: Refused) -> EgressError
fn from(refused: Refused) -> EgressError
Converts to this type from the input type.
impl StructuralPartialEq for Refused
Auto Trait Implementations§
impl Freeze for Refused
impl RefUnwindSafe for Refused
impl Send for Refused
impl Sync for Refused
impl Unpin for Refused
impl UnsafeUnpin for Refused
impl UnwindSafe for Refused
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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