changeset 1:03aa381b5c1c draft

Implement basic configuration type
author Lewin Bormann <lbo@spheniscida.de>
date Sat, 26 Nov 2016 11:55:46 +0100
parents 46810d1d1a0a
children 58aaac3848cb
files src/config.rs
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/config.rs	Sat Nov 26 11:55:46 2016 +0100
@@ -0,0 +1,15 @@
+
+#[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,
+        }
+    }
+}