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 429bc63 commit 9a65188Copy full SHA for 9a65188
bindings/ldk_node.udl
@@ -45,6 +45,7 @@ interface Node {
45
[Throws=NodeError]
46
void stop();
47
NodeStatus status();
48
+ Config config();
49
Event? next_event();
50
Event wait_next_event();
51
[Async]
src/lib.rs
@@ -760,6 +760,11 @@ impl Node {
760
}
761
762
763
+ /// Returns the config with which the [`Node`] was initialized.
764
+ pub fn config(&self) -> Config {
765
+ self.config.as_ref().clone()
766
+ }
767
+
768
/// Returns the next event in the event queue, if currently available.
769
///
770
/// Will return `Some(..)` if an event is available and `None` otherwise.
0 commit comments