From 3bce5e603f22cc027d12891f383a0490b8ba94c4 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Thu, 15 Aug 2024 17:51:04 +0400 Subject: [PATCH] docs: add doc-comments to new errors --- src/error.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/error.rs b/src/error.rs index c561cbd..429fdce 100644 --- a/src/error.rs +++ b/src/error.rs @@ -13,7 +13,8 @@ pub enum LibError { IoError(std::io::Error), /// URL parse or check error InvalidUrlError(InvalidUrl), - /// + /// DNS provided no suitable records + /// (e. g. domain does not exist) HostLookupError, /// Response status code is out of [10; 69] range StatusOutOfRange(u8), @@ -22,10 +23,10 @@ pub enum LibError { DataNotUtf8(std::string::FromUtf8Error), /// Provided string is not a valid MIME type InvalidMime(mime::FromStrError), - /// + /// Hickory Client error #[cfg(feature = "hickory")] DnsClientError(HickoryClientError), - /// + /// Hickory Proto error #[cfg(feature = "hickory")] DnsProtoError(HickoryProtoError), }