Expose `AsyncResult` type alias

Aperta
#3,824 2 commenti 1 reazione 1 assegnatario Vedi su GitHub

@joostjager ci sta già lavorando.

Dal 3/6/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

In #3734 and #3752 we started converting some of our traits to return an AsyncResult.

However, as async_poll.rs is not exposed, the docs now show the full Result type, which is a mouth full, e.g.:

 fn list_confirmed_utxos<'a>(
        &'a self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Utxo>, ()>> + Send + 'a>>;

IMO we should expose (and document) the AsyncResult type alias, to allow users to use AsyncResult in their trait implementations, and to have docs read better.

Lingua principale
Rust
Stelle
1.4k
Fork
482
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lightningdevkit/rust-lightning

Tutte le issue di lightningdevkit/rust-lightning

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.