Struct trust_dns_proto::xfer::dns_handle::BasicDnsHandle
source · pub struct BasicDnsHandle { /* private fields */ }
Expand description
Root DnsHandle implementaton returned by DnsMultiplexer
This can be used directly to perform queries. See trust_dns::client::SecureDnsHandle
for
a DNSSEc chain validator.
Implementations
sourceimpl BasicDnsHandle
impl BasicDnsHandle
sourcepub fn new(
message_sender: UnboundedSender<(DnsRequest, Sender<Result<DnsResponse, ProtoError>>)>
) -> Self
pub fn new(
message_sender: UnboundedSender<(DnsRequest, Sender<Result<DnsResponse, ProtoError>>)>
) -> Self
Returns a new BasicDnsHandle wrapping the message_sender
Trait Implementations
sourceimpl Clone for BasicDnsHandle
impl Clone for BasicDnsHandle
sourcefn clone(&self) -> BasicDnsHandle
fn clone(&self) -> BasicDnsHandle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl DnsHandle for BasicDnsHandle
impl DnsHandle for BasicDnsHandle
type Response = Box<dyn Future<Error = ProtoError, Item = DnsResponse> + Send + 'static, Global>
type Response = Box<dyn Future<Error = ProtoError, Item = DnsResponse> + Send + 'static, Global>
The associated response from the response future, this should resolve to the Response message
sourcefn send<R: Into<DnsRequest>>(
&mut self,
request: R
) -> Box<dyn Future<Item = DnsResponse, Error = ProtoError> + Send>
fn send<R: Into<DnsRequest>>(
&mut self,
request: R
) -> Box<dyn Future<Item = DnsResponse, Error = ProtoError> + Send>
Send a message via the channel in the client Read more
sourcefn is_verifying_dnssec(&self) -> bool
fn is_verifying_dnssec(&self) -> bool
Ony returns true if and only if this DNS handle is validating DNSSec. Read more
Auto Trait Implementations
impl !RefUnwindSafe for BasicDnsHandle
impl Send for BasicDnsHandle
impl Sync for BasicDnsHandle
impl Unpin for BasicDnsHandle
impl !UnwindSafe for BasicDnsHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more