Struct trust_dns::tcp::TcpHandler [] [src]

pub struct TcpHandler {
    // some fields omitted
}

Methods

impl TcpHandler
[src]

fn new_client_handler(message: Message, stream: TcpStream, catalog: Arc<Catalog>) -> Self

initializes this handler with the intention to write first

fn new_server_handler(stream: TcpStream, catalog: Arc<Catalog>) -> Self

initializes this handler with the intention to read first

fn get_stream(&self) -> &TcpStream

fn get_events(&self) -> EventSet

fn handle_message(&mut self, events: EventSet) -> Result<TcpState>

The result may be an error case of ErrorKind::WouldBlock, which means that the handler handler should be put back into the event loop for more processing.

fn reset(&mut self)

resets the state of the handler to perform more requests if desired. clears the buffers and sets the state back to the initial state

Trait Implementations

impl Debug for TcpHandler
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.