Struct hickory_resolver::name_server::GenericConnection
source · pub struct GenericConnection(/* private fields */);
Expand description
A connected DNS handle
Trait Implementations§
source§impl Clone for GenericConnection
impl Clone for GenericConnection
source§fn clone(&self) -> GenericConnection
fn clone(&self) -> GenericConnection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl DnsHandle for GenericConnection
impl DnsHandle for GenericConnection
§type Response = ConnectionResponse
type Response = ConnectionResponse
The associated response from the response stream, this should resolve to the Response messages
§type Error = ResolveError
type Error = ResolveError
Error of the response, generally this will be
ProtoError
source§fn send<R: Into<DnsRequest> + Unpin + Send + 'static>(
&self,
request: R
) -> Self::Response
fn send<R: Into<DnsRequest> + Unpin + Send + 'static>( &self, request: R ) -> Self::Response
Send a message via the channel in the client Read more
source§fn is_verifying_dnssec(&self) -> bool
fn is_verifying_dnssec(&self) -> bool
Only returns true if and only if this DNS handle is validating DNSSEC. Read more
source§fn is_using_edns(&self) -> bool
fn is_using_edns(&self) -> bool
Allow for disabling EDNS
Auto Trait Implementations§
impl Freeze for GenericConnection
impl !RefUnwindSafe for GenericConnection
impl Send for GenericConnection
impl Sync for GenericConnection
impl Unpin for GenericConnection
impl !UnwindSafe for GenericConnection
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