pub trait DnsClientStream: Stream<Item = Result<SerialMessage, ProtoError>> + Display + Send {
    type Time: Time;

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

A non-multiplexed stream of Serialized DNS messages

Required Associated Types§

source

type Time: Time

Time implementation for this impl

Required Methods§

source

fn name_server_addr(&self) -> SocketAddr

The remote name server address

Implementors§

source§

impl DnsClientStream for MdnsClientStream

Available on crate feature mdns only.
source§

impl<S: DnsTcpStream> DnsClientStream for TcpClientStream<S>

§

type Time = <S as DnsTcpStream>::Time