pub enum BroadcastVerification {
Confirmed,
Rejected,
Inconclusive,
}Expand description
Outcome of verifying that a just-broadcast tx actually reached the network.
Variants§
Confirmed
At least one source confirms the tx exists (accepted / seen / mined).
Rejected
A source that would hold the tx if it had been accepted affirmatively reports it absent, and no source reports it present — the broadcast was silently dropped (classic ARC 465 fee-too-low on a deep unconfirmed BEEF). The funds were NOT sent.
Inconclusive
No source could be reached to confirm either way. Callers must NOT treat this as a failure (avoids false negatives when the confirmation service itself is unreachable).
Implementations§
Source§impl BroadcastVerification
impl BroadcastVerification
Sourcepub fn into_send_result(self, txid: &str) -> Result<()>
pub fn into_send_result(self, txid: &str) -> Result<()>
Map a verification into a Result, failing loudly only on a definitive
Rejected. Confirmed and Inconclusive are both treated as “proceed”.
Trait Implementations§
Source§impl Clone for BroadcastVerification
impl Clone for BroadcastVerification
Source§fn clone(&self) -> BroadcastVerification
fn clone(&self) -> BroadcastVerification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BroadcastVerification
Source§impl Debug for BroadcastVerification
impl Debug for BroadcastVerification
impl Eq for BroadcastVerification
Source§impl PartialEq for BroadcastVerification
impl PartialEq for BroadcastVerification
Source§fn eq(&self, other: &BroadcastVerification) -> bool
fn eq(&self, other: &BroadcastVerification) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BroadcastVerification
Auto Trait Implementations§
impl Freeze for BroadcastVerification
impl RefUnwindSafe for BroadcastVerification
impl Send for BroadcastVerification
impl Sync for BroadcastVerification
impl Unpin for BroadcastVerification
impl UnsafeUnpin for BroadcastVerification
impl UnwindSafe for BroadcastVerification
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more