c-ares 13.0.0

A Rust wrapper for the c-ares library, for asynchronous DNS requests.
Documentation
1
2
3
4
5
6
7
use crate::error::Result;
use crate::types::QueryType;

pub(crate) trait QueryRecord: Sized + Send + 'static {
    const QUERY_TYPE: QueryType;
    fn parse(data: &[u8]) -> Result<Self>;
}