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

Method new

plugins/src/lib.rs:130–149  ·  view source on GitHub ↗
(input: I, output: O)

Source from the content-addressed store, hash-verified

128 I: AsyncRead + Send + Unpin + 'static,
129{
130 pub fn new(input: I, output: O) -> Self {
131 Self {
132 input: Some(input),
133 output: Some(output),
134 hooks: HashMap::new(),
135 subscriptions: HashMap::new(),
136 wildcard_subscription: None,
137 options: HashMap::new(),
138 // Should not be configured by user.
139 // This values are set when parsing the init-call
140 option_values: HashMap::new(),
141 rpcmethods: HashMap::new(),
142 setconfig_callback: None,
143 notifications: vec![],
144 featurebits: FeatureBits::default(),
145 dynamic: false,
146 custommessages: vec![],
147 logging: true,
148 }
149 }
150
151 pub fn option<'a, V: options::OptionType<'a>>(
152 mut self,

Callers

nothing calls this directly

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected