tcplane/server/config/impl.rs
1use crate::*;
2
3impl Default for ServerConfig {
4 #[inline]
5 fn default() -> Self {
6 Self {
7 host: DEFAULT_HOST.to_owned(),
8 port: DEFAULT_WEB_PORT,
9 log_dir: DEFAULT_LOG_DIR.to_owned(),
10 log_size: DEFAULT_LOG_FILE_SIZE,
11 buffer_size: DEFAULT_BUFFER_SIZE,
12 interval_millis: DEFAULT_LOG_INTERVAL_MILLIS,
13 print: DEFAULT_PRINT,
14 }
15 }
16}