mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-30 21:04:35 +01:00
derive Debug for connector/resolver error
This commit is contained in:
parent
d8ed9ae43a
commit
56b31960f1
@ -14,7 +14,7 @@ use super::resolver::{HostAware, Resolver, ResolverError, ResolverFuture};
|
|||||||
use super::{NewService, Service};
|
use super::{NewService, Service};
|
||||||
|
|
||||||
// #[derive(Fail, Debug)]
|
// #[derive(Fail, Debug)]
|
||||||
|
#[derive(Debug)]
|
||||||
pub enum ConnectorError {
|
pub enum ConnectorError {
|
||||||
/// Failed to resolve the hostname
|
/// Failed to resolve the hostname
|
||||||
// #[fail(display = "Failed resolving hostname: {}", _0)]
|
// #[fail(display = "Failed resolving hostname: {}", _0)]
|
||||||
|
@ -13,6 +13,7 @@ use trust_dns_resolver::{AsyncResolver, Background};
|
|||||||
|
|
||||||
use super::Service;
|
use super::Service;
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub enum ResolverError {
|
pub enum ResolverError {
|
||||||
Resolve(ResolveError),
|
Resolve(ResolveError),
|
||||||
InvalidInput,
|
InvalidInput,
|
||||||
|
Loading…
Reference in New Issue
Block a user