var searchIndex = {}; searchIndex["hydrogen"] = {"doc":"hydrogen is a non-blocking Edge Triggered TCP socket lib built atop [epoll][epoll-man-page]\nwith performance, concurrency, and scalability as its main priorities. It takes care of the\ntedious connection and I/O marshalling across threads, and leaves the specifics of I/O reading\nand writing up the consumer, through trait implementations.","items":[[3,"Config","hydrogen","Configuration options for server",null,null],[12,"addr","","Address to bind to",0,null],[12,"port","","Port to bind to",0,null],[12,"max_threads","","The number of threads to use for I/O handling.\nThe lib itself makes use of 3 threads.",0,null],[12,"pre_allocated","","The amount of pre-allocated slab space for connections.\nThis should be, roughly, the maximum amount of concurrent\nconnections expected.",0,null],[3,"HydrogenSocket","","Thread-safe wrapper for consumer interaction with streams.",null,null],[5,"begin","","Starts the server with the passed configuration and handler.",null,{"inputs":[{"name":"box"},{"name":"config"}],"output":null}],[11,"clone","","",1,null],[11,"new","","",1,null],[11,"send","","",1,null],[11,"shutdown","","",1,null],[11,"as_raw_fd","","",1,null],[8,"Stream","","Trait object responsible for handling reported I/O events.",null,null],[10,"recv","","Called when epoll reports data is available for read.",2,null],[10,"send","","Called as the internal writer for the HydrogenSocket wrapper.",2,null],[10,"shutdown","","This method is called when any error, other than `ErrorKind::WouldBlock`, is returned from\na `recv` or `send` call.",2,null],[8,"Handler","","Events reported to lib consumer.",null,null],[10,"on_server_created","","This method is called once the listening RawFd has been created.",3,null],[10,"on_new_connection","","This method is called whenever `accept` returns a new TCP connection.",3,null],[10,"on_data_received","","This method is called whenever the `recv` call returns an Ok(_) result.",3,null],[10,"on_connection_removed","","This method is called after a stream has been removed from the connection poll and epoll\ninterest list, with the `std::io::Error` as the reason removed.",3,null]],"paths":[[3,"Config"],[3,"HydrogenSocket"],[8,"Stream"],[8,"Handler"]]}; initSearch(searchIndex);