Struct trust_dns_client::tcp::TcpClientConnection
source · [−]pub struct TcpClientConnection { /* private fields */ }
Expand description
Tcp client connection
Use with trust_dns_client::client::Client
impls
Implementations
Creates a new client connection.
Note this has side affects of establishing the connection to the specified DNS server and starting the event_loop. Expect this to change in the future.
Default connection timeout is 5 seconds
Arguments
name_server
- address of the name server to use for queries
Creates a new client connection.
Note this has side affects of establishing the connection to the specified DNS server and starting the event_loop. Expect this to change in the future.
Arguments
name_server
- address of the name server to use for queries
Trait Implementations
type Sender = DnsMultiplexer<TcpClientStream<AsyncIoTokioAsStd<TcpStream>>, Signer>
type Sender = DnsMultiplexer<TcpClientStream<AsyncIoTokioAsStd<TcpStream>>, Signer>
The associated DNS RequestSender type.
type SenderFuture = DnsMultiplexerConnect<TcpClientConnect<AsyncIoTokioAsStd<TcpStream>>, TcpClientStream<AsyncIoTokioAsStd<TcpStream>>, Signer>
type SenderFuture = DnsMultiplexerConnect<TcpClientConnect<AsyncIoTokioAsStd<TcpStream>>, TcpClientStream<AsyncIoTokioAsStd<TcpStream>>, Signer>
A future that resolves to the RequestSender
Construct a new stream for use in the Client
Auto Trait Implementations
impl RefUnwindSafe for TcpClientConnection
impl Send for TcpClientConnection
impl Sync for TcpClientConnection
impl Unpin for TcpClientConnection
impl UnwindSafe for TcpClientConnection
Blanket Implementations
Mutably borrows from an owned value. Read more