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: String

Address to bind to

port: u16

Port to bind to

max_threads: usize

The number of threads to use for I/O handling. The lib itself makes use of 3 threads.

pre_allocated: usize

The amount of pre-allocated slab space for connections. This should be, roughly, the maximum amount of concurrent connections expected.