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

Method option_str

plugins/src/lib.rs:733–740  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

731 S: Clone + Send,
732{
733 pub fn option_str(&self, name: &str) -> Result<Option<options::Value>> {
734 self.option_values
735 .lock()
736 .unwrap()
737 .get(name)
738 .ok_or(anyhow!("No option named {}", name))
739 .cloned()
740 }
741
742 pub fn option<'a, OV: OptionType<'a>>(
743 &self,

Callers 3

gather_sourcesFunction · 0.80
optionMethod · 0.80
parse_optionsFunction · 0.80

Calls 3

mapMethod · 0.80
getMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected