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

pub struct SyncClient<CC> { /* 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.

Methods

impl<CC> SyncClient<CC> where
    CC: ClientConnection
[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> Client for SyncClient<CC> where
    CC: ClientConnection
[src]

type Response = CC::Response

The result future that will resolve into a DnsResponse

type Sender = CC::Sender

The actual DNS request sender, aka Connection

type SenderFuture = CC::SenderFuture

A future that resolves into the Sender after connection

type Handle = BasicClientHandle<CC::Response>

A handle to send messages to the Sender

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

impl<T> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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