Struct trust_dns_client::client::MemoizeClientHandle
source · [−]pub struct MemoizeClientHandle<H: ClientHandle> { /* private fields */ }Expand description
A ClientHandle for memoized (cached) responses to queries.
This wraps a ClientHandle, changing the implementation send() to store the response against
the Message.Query that was sent. This should reduce network traffic especially during things
like DNSSec validation. Warning this will currently cache for the life of the Client.
Implementations
Returns a new handle wrapping the specified client
Trait Implementations
type Response = Pin<Box<dyn Future<Output = Result<DnsResponse, ProtoError>> + Send>>
type Response = Pin<Box<dyn Future<Output = Result<DnsResponse, ProtoError>> + Send>>
The associated response from the response future, this should resolve to the Response message
type Error = ProtoError
type Error = ProtoError
Error of the response, generally this will be ProtoError
Send a message via the channel in the client Read more
Only returns true if and only if this DNS handle is validating DNSSec. Read more
Auto Trait Implementations
impl<H> !RefUnwindSafe for MemoizeClientHandle<H>
impl<H> Send for MemoizeClientHandle<H>
impl<H> Sync for MemoizeClientHandle<H>
impl<H> Unpin for MemoizeClientHandle<H>
impl<H> !UnwindSafe for MemoizeClientHandle<H>
Blanket Implementations
Mutably borrows from an owned value. Read more