Struct trust_dns::client::MemoizeClientHandle [] [src]

#[must_use = "queries can only be sent through a ClientHandle"]
pub struct MemoizeClientHandle<H: ClientHandle> { /* fields omitted */ }

A ClienHandle 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.

Methods

impl<H> MemoizeClientHandle<H> where
    H: ClientHandle
[src]

Returns a new handle wrapping the specified client

Trait Implementations

impl<H: Clone + ClientHandle> Clone for MemoizeClientHandle<H>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<H> ClientHandle for MemoizeClientHandle<H> where
    H: ClientHandle
[src]

Send a message via the channel in the client Read more

A classic DNS query Read more

Sends a NOTIFY message to the remote system Read more

Sends a record to create on the server, this will fail if the record exists (atomicity depends on the server) Read more

Appends a record to an existing rrset, optionally require the rrset to exis (atomicity depends on the server) Read more

Compares and if it matches, swaps it for the new value (atomicity depends on the server) Read more

Deletes a record (by rdata) from an rrset, optionally require the rrset to exist. Read more

Deletes an entire rrset, optionally require the rrset to exist. Read more

Deletes all records at the specified name Read more