Enum cdns_rs::sync::network::NetworkTap[][src]

pub enum NetworkTap {
    UdpStream {
        sock: UdpSocket,
        remote_addr: SocketAddr,
    },
}
Expand description

A types of the communication channels which are supported. It is used for data transmission between DNS client and DNS server.

Variants

UdpStream

A UDP stream

Fields of UdpStream

sock: UdpSocketremote_addr: SocketAddr

Implementations

Reads the remote host’s address and port and returns it.

Returns
  • SocketAddr a reference to remote host address and port

Sends data over channel synchroniosly

Blocks the current thread until sent

Receives data from channel synchroniosly

Blocks the current thread until received or timeout.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.