]> git.bitcoin.ninja Git - rust-lightning/commit
Add a bindings-only version of `Future::register_callback`
authorMatt Corallo <git@bluematt.me>
Fri, 23 Sep 2022 21:08:26 +0000 (21:08 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 23 Sep 2022 21:08:26 +0000 (21:08 +0000)
commit3e2d591dc537dbee71dc9c1e52550937b2d4778a
treedf0f54a2c0901a89abe13a1edcdae2b66c1c256e
parentb4a40f6b409a54f586ba560ecb1d5ab002c3e8f3
Add a bindings-only version of `Future::register_callback`

While we could, in theory, add support to the bindings logic to map
`Box<dyn Trait>`, there isn't a whole lot of use doing so when its
incredibly trivial to do directly.

This adds a trivial wrapper around `Future::register_callback` that
is only built in bindings and which is linked in the
`register_callback` docs for visibility.
lightning/src/util/wakers.rs