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

Method set_option_str

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

Source from the content-addressed store, hash-verified

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

Callers 2

set_optionMethod · 0.80
setconfig_callbackFunction · 0.80

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected