use rsip::{Domain, Error}; use rsip_dns::{records::*, DnsClient}; #[derive(Debug, Clone, Default)] pub struct PanicDnsClient; #[async_trait::async_trait] impl DnsClient for PanicDnsClient { async fn naptr_lookup(&self, _domain: Domain) -> Option { panic!("should never call naptr_entries_for, yet it did!") } async fn srv_lookup(&self, _domain: SrvDomain) -> Option { panic!("should never call srv_entries_for, yet it did!") } async fn ip_lookup(&self, _domain: Domain) -> Result { panic!("should never call a_entries_for, yet it did!") } }