Return an appropriately configured `SessionConfig`
(&self)
| 75 | impl CommonOpt { |
| 76 | /// Return an appropriately configured `SessionConfig` |
| 77 | pub fn config(&self) -> Result<SessionConfig> { |
| 78 | SessionConfig::from_env().map(|config| self.update_config(config)) |
| 79 | } |
| 80 | |
| 81 | /// Modify the existing config appropriately |
| 82 | pub fn update_config(&self, mut config: SessionConfig) -> SessionConfig { |