MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / set_parameter

Method set_parameter

nodedb-client/src/native/connection/mod.rs:308–320  ·  view source on GitHub ↗

Set a session parameter.

(&mut self, key: &str, value: &str)

Source from the content-addressed store, hash-verified

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> {

Callers

nothing calls this directly

Calls 3

check_errorFunction · 0.85
to_stringMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected