Function dns_server::process_datagram
source · pub fn process_datagram(
bytes: &mut FixedBuf<512>,
handler: &impl Fn(&DnsQuestion) -> Vec<DnsRecord>
) -> Result<FixedBuf<512>, DnsError>Expand description
§Errors
Returns Err when the request is malformed or the server is not configured to answer the
request.