(&self)
| 269 | } |
| 270 | |
| 271 | fn default_protocol(&self) -> anyhow::Result<&str> { |
| 272 | self.default_server() |
| 273 | .with_context(|| "Cannot find protocol for default server") |
| 274 | .map(|cfg| cfg.protocol.as_ref()) |
| 275 | } |
| 276 | |
| 277 | fn set_default_server(&mut self, server: &str) -> anyhow::Result<()> { |
| 278 | // Check that such a server exists before setting the default. |
no test coverage detected