Struct trust_dns_client::client::SyncClient[][src]

pub struct SyncClient<CC: ClientConnection> { /* fields omitted */ }

The Client is abstracted over either trust_dns_client::tcp::TcpClientConnection or trust_dns_client::udp::UdpClientConnection.

Usage of TCP or UDP is up to the user. Some DNS servers disallow TCP in some cases, so if TCP double check if UDP works.

Implementations

impl<CC: ClientConnection> SyncClient<CC>[src]

pub fn new(conn: CC) -> Self[src]

Creates a new DNS client with the specified connection type

Arguments

pub fn with_signer(conn: CC, signer: Signer) -> Self[src]

Creates a new DNS client with the specified connection type and a SIG0 signer.

This is necessary for signed update requests to update trust-dns-server entries.

Arguments

  • conn - the ClientConnection to use for all communication
  • signer - signer to use, this needs an associated private key

Trait Implementations

impl<CC: ClientConnection> Client for SyncClient<CC>[src]

type Response = DnsExchangeSend<CC::Response>

The result future that will resolve into a DnsResponse

type Handle = AsyncClient<CC::Response>

The AsyncClient type used

Auto Trait Implementations

impl<CC> RefUnwindSafe for SyncClient<CC> where
    CC: RefUnwindSafe

impl<CC> Send for SyncClient<CC>

impl<CC> Sync for SyncClient<CC>

impl<CC> Unpin for SyncClient<CC>

impl<CC> UnwindSafe for SyncClient<CC> where
    CC: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,