Struct adns_client::DnsClient
source · 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 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