pub struct Server<S> { /* private fields */ }
Expand description
A DNS server
Implementations§
source§impl Server<Runner>
impl Server<Runner>
sourcepub fn serve<T>(self, srv: T)where
T: ServerService + Sync,
pub fn serve<T>(self, srv: T)where
T: ServerService + Sync,
Run the ServerService in the thread-pool.
If an error is encountered when parsing the DnsPacket the error is silently droped.