Struct dnscache::DnsCache
[−]
[src]
pub struct DnsCache<DB: Database, N: Network> { /* fields omitted */ }
Main object. DNS proxy with forced caching.
Methods
impl<DB: Database, N: Network> DnsCache<DB, N>
[src]
pub fn new(db: DB, net: N, opts: Options) -> Self
[src]
Create instance of DnsCache
pub fn serve_one_packet(&mut self) -> BoxResult<()>
[src]
Receive and process one packet
pub fn run_endlessly(&mut self) -> BoxResult<()>
[src]
Receive and process forever in a loop