pub enum DnsError {
Query(QueryError),
Status(RCode),
InvalidRecordType,
NoServers,
}Expand description
Errors returned before or after making a DNS request over HTTPS.
Variants§
Query(QueryError)
An error occurred before making the request. This can when a name is of the wrong format, connecting to servers, or parsing the server response.
Status(RCode)
An error returned by the DNS server with regards to the name being queried. It occurs after a successful request/response. An example is a name that does not exist.
InvalidRecordType
An error returned when an attempt to query a record type that does not exist.
NoServers
An error when trying to setup an empty list of servers to query.
Trait Implementations§
Source§impl Error for DnsError
impl Error for DnsError
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 DnsError
impl RefUnwindSafe for DnsError
impl Send for DnsError
impl Sync for DnsError
impl Unpin for DnsError
impl UnwindSafe for DnsError
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