Struct trust_dns::udp::UdpClientConnection
source · pub struct UdpClientConnection { /* private fields */ }
Expand description
UDP based DNS Client connection
Use with trust_dns::client::Client
impls
Implementations
sourceimpl UdpClientConnection
impl UdpClientConnection
sourcepub fn new(name_server: SocketAddr) -> ClientResult<Self>
pub fn new(name_server: SocketAddr) -> ClientResult<Self>
Creates a new client connection.
Note this has side affects of binding the socket to 0.0.0.0 and starting the listening event_loop. Expect this to change in the future.
Arguments
name_server
- address of the name server to use for queries
Trait Implementations
sourceimpl ClientConnection for UdpClientConnection
impl ClientConnection for UdpClientConnection
type Sender = DnsMultiplexer<UdpClientStream, Signer, Box<dyn DnsStreamHandle + 'static, Global>>
type Sender = DnsMultiplexer<UdpClientStream, Signer, Box<dyn DnsStreamHandle + 'static, Global>>
The associated DNS RequestSender type.
type Response = <<UdpClientConnection as ClientConnection>::Sender as DnsRequestSender>::DnsResponseFuture
type Response = <<UdpClientConnection as ClientConnection>::Sender as DnsRequestSender>::DnsResponseFuture
Response type of the RequestSender
type SenderFuture = DnsMultiplexerConnect<UdpClientConnect, UdpClientStream, Signer>
type SenderFuture = DnsMultiplexerConnect<UdpClientConnect, UdpClientStream, Signer>
A future that resolves to the RequestSender
sourcefn new_stream(&self, signer: Option<Arc<Signer>>) -> Self::SenderFuture
fn new_stream(&self, signer: Option<Arc<Signer>>) -> Self::SenderFuture
Construct a new stream for use in the Client
sourceimpl Clone for UdpClientConnection
impl Clone for UdpClientConnection
sourcefn clone(&self) -> UdpClientConnection
fn clone(&self) -> UdpClientConnection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for UdpClientConnection
impl Send for UdpClientConnection
impl Sync for UdpClientConnection
impl Unpin for UdpClientConnection
impl UnwindSafe for UdpClientConnection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more