pub struct DnsSocket { /* private fields */ }Implementations§
Source§impl DnsSocket
impl DnsSocket
pub fn new(context: SocketContext) -> Self
pub async fn update_servers(&self) -> Result<()>
pub async fn resolve_for_kind( &self, host: &str, kind: DnsQueryType, ) -> Result<Vec<IpAddress>>
pub async fn resolve( &self, host: &str, kind: DnsQueryKind, ) -> Result<Vec<IpAddress>>
pub async fn close(self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DnsSocket
impl !RefUnwindSafe for DnsSocket
impl Send for DnsSocket
impl Sync for DnsSocket
impl Unpin for DnsSocket
impl !UnwindSafe for DnsSocket
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