Struct hydrogen::Config
[−]
[src]
pub struct Config { pub addr: String, pub port: u16, pub max_threads: usize, pub pre_allocated: usize, }
Configuration options for server
Fields
addr | Address to bind to |
port | Port to bind to |
max_threads | The number of threads to use for I/O handling. The lib itself makes use of 3 threads. |
pre_allocated | The amount of pre-allocated slab space for connections. This should be, roughly, the maximum amount of concurrent connections expected. |