Struct exar_server::Handler [] [src]

pub struct Handler {
    // some fields omitted
}

Exar DB's server connection handler.

It manages the TCP stream associated to a single remote connection.

Methods

impl Handler
[src]

fn new(stream: TcpStream, db: Arc<Mutex<Database>>, credentials: Credentials) -> Result<HandlerDatabaseError>

Creates a connection handler using the given TCP stream, database and credentials, or a DatabaseError if a failure occurs.

fn run(&mut self)

Runs the connection handler which processes one incoming TCP message at a time.