From: Valentine Wallace Date: Wed, 24 Mar 2021 20:03:36 +0000 (-0400) Subject: Expose AsyncBlockSourceResult and BlockSourceResult as pub X-Git-Tag: v0.0.14~43^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=85106c9768c4fa5cac2e0123a0d67cd6a7d9862a;p=rust-lightning Expose AsyncBlockSourceResult and BlockSourceResult as pub Useful for writing objects that implement BlockSource trait. --- diff --git a/lightning-block-sync/src/lib.rs b/lightning-block-sync/src/lib.rs index bc937b59..ac031132 100644 --- a/lightning-block-sync/src/lib.rs +++ b/lightning-block-sync/src/lib.rs @@ -75,12 +75,12 @@ pub trait BlockSource : Sync + Send { } /// Result type for `BlockSource` requests. -type BlockSourceResult = Result; +pub type BlockSourceResult = Result; // TODO: Replace with BlockSourceResult once `async` trait functions are supported. For details, // see: https://areweasyncyet.rs. /// Result type for asynchronous `BlockSource` requests. -type AsyncBlockSourceResult<'a, T> = Pin> + 'a + Send>>; +pub type AsyncBlockSourceResult<'a, T> = Pin> + 'a + Send>>; /// Error type for `BlockSource` requests. ///