Struct trust_dns::server::Server [] [src]

pub struct Server { /* fields omitted */ }

Methods

impl Server
[src]

register a UDP socket. Should be bound before calling this.

register a TcpListener to the Server. This should already be bound to either an IPv6 or an IPv4 address.

TODO how to do threads? should we do a bunch of listener threads and then query threads? Ideally the processing would be n-threads for recieving, which hand off to m-threads for request handling. It would generally be the case that n <= m.

Trait Implementations

impl Handler for Server
[src]

Invoked when the socket represented by token is ready to be operated on. events indicates the specific operations that are ready to be performed. Read more

Invoked when EventLoop has been interrupted by a signal interrupt.

Invoked when a message has been received via the event loop's channel.

Invoked when a timeout has completed.

Invoked at the end of an event loop tick.