view src/config.rs @ 1:03aa381b5c1c draft

Implement basic configuration type
author Lewin Bormann <lbo@spheniscida.de>
date Sat, 26 Nov 2016 11:55:46 +0100
parents
children 2d2296e5bcf4
line wrap: on
line source


#[derive(Clone)]
pub struct Config {
    pub bind_path: String,
    pub max_msg_len: usize,
}

impl Default for Config {
    fn default() -> Config {
        Config {
            bind_path: "/dev/log".to_string(),
            max_msg_len: 2048,
        }
    }
}