pub struct DnsClient { /* private fields */ }
Implementations§
Source§impl DnsClient
impl DnsClient
pub async fn new() -> Result<Self, DnsQueryError>
pub async fn query( &mut self, servers: impl ToSocketAddrs, questions: Vec<Question>, ) -> Result<Packet, DnsQueryError>
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