Struct trust_dns::udp::UdpHandler
[−]
[src]
pub struct UdpHandler { /* fields omitted */ }
Methods
impl UdpHandler
[src]
fn new_client(server_addr: SocketAddr, request: Message) -> Self
fn new_server(socket: &UdpSocket, catalog: Arc<Catalog>) -> Option<Self>
fn remote_addr(&self) -> SocketAddr
fn serialize_msg(buf: Vec<u8>, response: &Message) -> Vec<u8>
fn handle_message(&self,
socket: &UdpSocket,
events: EventSet)
-> Result<UdpState>
socket: &UdpSocket,
events: EventSet)
-> Result<UdpState>