We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Node
Config
1 parent 98f2c5a commit 764a73aCopy full SHA for 764a73a
bindings/ldk_node.udl
@@ -43,6 +43,7 @@ interface LDKNode {
43
[Throws=NodeError]
44
void stop();
45
NodeStatus status();
46
+ Config config();
47
Event? next_event();
48
Event wait_next_event();
49
[Async]
src/lib.rs
@@ -763,6 +763,11 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
763
}
764
765
766
+ /// Returns the config with which the [`Node`] was initialized.
767
+ pub fn config(&self) -> Config {
768
+ self.config.as_ref().clone()
769
+ }
770
+
771
/// Returns the next event in the event queue, if currently available.
772
///
773
/// Will return `Some(..)` if an event is available and `None` otherwise.
0 commit comments