Skip to main content

DnsClientStream

Trait DnsClientStream 

pub trait DnsClientStream:
    Stream<Item = Result<SerialMessage, NetError>>
    + Unpin
    + Send
    + 'static {
    type Time: Time;

    // Required method
    fn name_server_addr(&self) -> SocketAddr;
}
Expand description

A non-multiplexed stream of Serialized DNS messages

Required Associated Types§

type Time: Time

Time implementation for this impl

Required Methods§

fn name_server_addr(&self) -> SocketAddr

The remote name server address

Implementors§