reception/listener/config/
mod.rs1mod websocket_config;
2
3use serde::Deserialize;
4
5use crate::connection::ConnectionConfig;
6
7pub use self::websocket_config::WebSocketConfig;
8
9#[derive(Debug, Deserialize, Clone, PartialEq, Eq, PartialOrd, Ord)]
11pub struct ListenerConfig {
12 pub interface: String,
16
17 pub port: u16,
21
22 pub websocket_config: WebSocketConfig,
24
25 pub connection_config: ConnectionConfig,
27}
28
29impl Default for ListenerConfig {
30 fn default() -> Self {
31 Self {
32 interface: "127.0.0.1".to_owned(),
33 port: 8080,
34 websocket_config: Default::default(),
35 connection_config: Default::default(),
36 }
37 }
38}