async_ws/connection/
config.rs

1use std::time::Duration;
2
3pub struct WsConfig {
4    pub mask: bool,
5    pub timeout: Duration,
6    _private: (),
7}
8
9impl WsConfig {
10    pub fn client() -> Self {
11        Self {
12            mask: true,
13            timeout: Duration::from_secs(10),
14            _private: (),
15        }
16    }
17    pub fn server() -> Self {
18        Self {
19            mask: false,
20            timeout: Duration::from_secs(10),
21            _private: (),
22        }
23    }
24}