Struct public_ip::dns::Resolver [−][src]
pub struct Resolver<'r> { /* fields omitted */ }
This is supported on crate feature
dns-resolver
only.Expand description
Options to build a DNS resolver.
Implementations
pub 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> RefUnwindSafe for Resolver<'r>
impl<'r> UnwindSafe for Resolver<'r>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more