Enum breez_sdk_core::lightning::routing::utxo::UtxoResult
pub enum UtxoResult {
Sync(Result<TxOut, UtxoLookupError>),
Async(UtxoFuture),
}
Expand description
The result of a UtxoLookup::get_utxo
call. A call may resolve either synchronously,
returning the Sync
variant, or asynchronously, returning an UtxoFuture
in the Async
variant.
Variants§
Sync(Result<TxOut, UtxoLookupError>)
A result which was resolved synchronously. It either includes a TxOut
for the output
requested or a UtxoLookupError
.
Async(UtxoFuture)
A result which will be resolved asynchronously. It includes a UtxoFuture
, a clone
of
which you must keep locally and call UtxoFuture::resolve
on once the lookup completes.
Note that in order to avoid runaway memory usage, the number of parallel checks is limited, but only fairly loosely. Because a pending checks block all message processing, leaving checks pending for an extended time may cause DoS of other functions. It is recommended you keep a tight timeout on lookups, on the order of a few seconds.
Trait Implementations§
§impl Clone for UtxoResult
impl Clone for UtxoResult
§fn clone(&self) -> UtxoResult
fn clone(&self) -> UtxoResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UtxoResult
impl RefUnwindSafe for UtxoResult
impl Send for UtxoResult
impl Sync for UtxoResult
impl Unpin for UtxoResult
impl UnwindSafe for UtxoResult
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any
.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request