pub struct Resolver<'r> { /* private fields */ }Available on crate feature
dns-resolver only.Expand description
Options to build a DNS resolver.
Implementations§
Source§impl Resolver<'static>
impl Resolver<'static>
Sourcepub const fn new_static(
name: &'static str,
servers: &'static [IpAddr],
port: u16,
method: QueryMethod,
) -> Self
pub const fn new_static( name: &'static str, servers: &'static [IpAddr], port: u16, method: QueryMethod, ) -> Self
Create a new DNS resolver from static options.
Trait Implementations§
Auto Trait Implementations§
impl<'r> Freeze for Resolver<'r>
impl<'r> RefUnwindSafe for Resolver<'r>
impl<'r> Send for Resolver<'r>
impl<'r> Sync for Resolver<'r>
impl<'r> Unpin for Resolver<'r>
impl<'r> UnwindSafe for Resolver<'r>
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