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 holds the tx (accepted / seen / mined).
Rejected
Both the broadcaster we actually submitted through and an independent
chain index affirmatively report the tx absent (or, for the broadcaster,
fatally rejected) after the full probe window, and no source holds it:
the broadcast was silently dropped (classic ARC 465 fee-too-low on a
deep unconfirmed BEEF, an Arcade REJECTED). The funds were NOT sent.
Inconclusive
No source could give an answer that clears the evidence bar. Callers must NOT treat this as a failure (avoids false negatives when the confirmation service is unreachable, or when only the wrong plane reports absence).
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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
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
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> ⓘ
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> ⓘ
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