pub enum ResolveError {
Private {
addr: IpAddr,
},
Blocked {
addr: Option<IpAddr>,
class: Option<AddressClass>,
reason: String,
},
Dns(HttpError),
}Expand description
Why [AddressPolicy::resolve_vetted_async] refused a host.
Variants§
Private
A private address (RFC 1918, CGNAT or unique-local) that the policy would admit once the
caller approves it, for example through AddressPolicy::allow_private_resolution.
Blocked
Refused outright: link-local or metadata, a denied range, a custom denial, or a name rule.
Dns(HttpError)
The name did not resolve, or the lookup failed.
Trait Implementations§
Source§impl Debug for ResolveError
impl Debug for ResolveError
Source§impl Display for ResolveError
impl Display for ResolveError
Source§impl Error for ResolveError
impl Error for ResolveError
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()
Auto Trait Implementations§
impl Freeze for ResolveError
impl RefUnwindSafe for ResolveError
impl Send for ResolveError
impl Sync for ResolveError
impl Unpin for ResolveError
impl UnsafeUnpin for ResolveError
impl UnwindSafe for ResolveError
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