pub struct DnsClient { /* private fields */ }
Implementations§
Source§impl DnsClient
impl DnsClient
pub fn new(rt: Arc<Runtime>) -> DnsClient
pub async fn resolve( &self, dns_config: DnsConfig, host: String, ) -> Result<ReceiverStream<IpAddr>>
pub async fn resolve_service( &self, dns_config: DnsConfig, domain: String, service_name: String, ) -> Result<ReceiverStream<(String, u16)>>
pub fn clear_cache(&self, name: String, rtype: RecordType)
pub fn clear_naptr_srv_cache(&self, q_name: String, q_service_type: String)
Auto Trait Implementations§
impl Freeze for DnsClient
impl RefUnwindSafe for DnsClient
impl Send for DnsClient
impl Sync for DnsClient
impl Unpin for DnsClient
impl UnwindSafe for DnsClient
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