MCPcopy Create free account
hub / github.com/ElementsProject/lightning / set_option_str

Method set_option_str

plugins/src/lib.rs:751–759  ·  view source on GitHub ↗
(&self, name: &str, value: options::Value)

Source from the content-addressed store, hash-verified

749 }
750
751 pub fn set_option_str(&self, name: &str, value: options::Value) -> Result<()> {
752 *self
753 .option_values
754 .lock()
755 .unwrap()
756 .get_mut(name)
757 .ok_or(anyhow!("No option named {}", name))? = Some(value);
758 Ok(())
759 }
760
761 pub fn set_option<'a, OV: OptionType<'a>>(
762 &self,

Callers 2

set_optionMethod · 0.80
setconfig_callbackFunction · 0.80

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected