1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
use crate::{BoxedConnectHandler, BoxedLaunchHandler};
use std::collections::HashMap;
pub struct DistantManagerConfig {
pub launch_fallback_scheme: String,
pub connect_fallback_scheme: String,
pub connection_buffer_size: usize,
pub user: bool,
pub launch_handlers: HashMap<String, BoxedLaunchHandler>,
pub connect_handlers: HashMap<String, BoxedConnectHandler>,
}
impl Default for DistantManagerConfig {
fn default() -> Self {
Self {
launch_fallback_scheme: "ssh".to_string(),
connect_fallback_scheme: "distant".to_string(),
connection_buffer_size: 100,
user: false,
launch_handlers: HashMap::new(),
connect_handlers: HashMap::new(),
}
}
}