Set a session parameter.
(&mut self, key: &str, value: &str)
| 306 | |
| 307 | /// Set a session parameter. |
| 308 | pub async fn set_parameter(&mut self, key: &str, value: &str) -> NodeDbResult<()> { |
| 309 | let resp = self |
| 310 | .send( |
| 311 | OpCode::Set, |
| 312 | TextFields { |
| 313 | key: Some(key.to_string()), |
| 314 | value: Some(value.to_string()), |
| 315 | ..Default::default() |
| 316 | }, |
| 317 | ) |
| 318 | .await?; |
| 319 | check_error(resp) |
| 320 | } |
| 321 | |
| 322 | /// Show a session parameter. |
| 323 | pub async fn show_parameter(&mut self, key: &str) -> NodeDbResult<String> { |
nothing calls this directly
no test coverage detected