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

Method disable

plugins/src/lib.rs:835–851  ·  view source on GitHub ↗
(mut self, reason: &str)

Source from the content-addressed store, hash-verified

833 /// voluntarily, and this is not an error.
834 #[allow(unused_mut)]
835 pub async fn disable(mut self, reason: &str) -> Result<(), anyhow::Error> {
836 self.output
837 .lock()
838 .await
839 .send(json!(
840 {
841 "jsonrpc": "2.0",
842 "id": self.init_id,
843 "result": crate::messages::InitResponse{
844 disable: Some(reason.to_string())
845 }
846 }
847 ))
848 .await
849 .context("sending init response")?;
850 Ok(())
851 }
852
853 pub fn option_str(&self, name: &str) -> Result<Option<options::Value>> {
854 self.option_values

Callers 6

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected