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]

[src]

Create instance of DnsCache

[src]

Receive and process one packet

[src]

Receive and process forever in a loop

Trait Implementations

Auto Trait Implementations

impl<DB, N> Send for DnsCache<DB, N> where
    DB: Send,
    N: Send,
    <N as Network>::ClientId: Send

impl<DB, N> Sync for DnsCache<DB, N> where
    DB: Sync,
    N: Sync,
    <N as Network>::ClientId: Sync