1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
/// Set of options to define the behavior of the UDS listener
pub struct Options {
    /// Define the number of worker threads to listen
    pub workers: usize,
}

impl Default for Options {
    fn default() -> Self {
        Options {
            workers: num_cpus::get(),
        }
    }
}