use std::collections::HashMap;
use super::{BoxedConnectHandler, BoxedLaunchHandler};
pub struct Config {
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 Config {
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(),
}
}
}