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

Method option_str

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

Source from the content-addressed store, hash-verified

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