Struct bdk_chain::tx_graph::CanonicalTx
source · pub struct CanonicalTx<'a, T, A> {
pub chain_position: ChainPosition<&'a A>,
pub tx_node: TxNode<'a, T, A>,
}
Expand description
A transaction that is included in the chain, or is still in mempool.
Fields§
§chain_position: ChainPosition<&'a A>
How the transaction is observed as (confirmed or unconfirmed).
tx_node: TxNode<'a, T, A>
The transaction node (as part of the graph).
Trait Implementations§
source§impl<'a, T: Clone, A: Clone> Clone for CanonicalTx<'a, T, A>
impl<'a, T: Clone, A: Clone> Clone for CanonicalTx<'a, T, A>
source§fn clone(&self) -> CanonicalTx<'a, T, A>
fn clone(&self) -> CanonicalTx<'a, T, A>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, T: Ord, A: Ord> Ord for CanonicalTx<'a, T, A>
impl<'a, T: Ord, A: Ord> Ord for CanonicalTx<'a, T, A>
source§fn cmp(&self, other: &CanonicalTx<'a, T, A>) -> Ordering
fn cmp(&self, other: &CanonicalTx<'a, T, A>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a, T: PartialEq, A: PartialEq> PartialEq for CanonicalTx<'a, T, A>
impl<'a, T: PartialEq, A: PartialEq> PartialEq for CanonicalTx<'a, T, A>
source§fn eq(&self, other: &CanonicalTx<'a, T, A>) -> bool
fn eq(&self, other: &CanonicalTx<'a, T, A>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, T: PartialOrd, A: PartialOrd> PartialOrd for CanonicalTx<'a, T, A>
impl<'a, T: PartialOrd, A: PartialOrd> PartialOrd for CanonicalTx<'a, T, A>
source§fn partial_cmp(&self, other: &CanonicalTx<'a, T, A>) -> Option<Ordering>
fn partial_cmp(&self, other: &CanonicalTx<'a, T, A>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a, T: Eq, A: Eq> Eq for CanonicalTx<'a, T, A>
impl<'a, T, A> StructuralPartialEq for CanonicalTx<'a, T, A>
Auto Trait Implementations§
impl<'a, T, A> Freeze for CanonicalTx<'a, T, A>where
T: Freeze,
impl<'a, T, A> RefUnwindSafe for CanonicalTx<'a, T, A>where
T: RefUnwindSafe,
A: RefUnwindSafe,
impl<'a, T, A> Send for CanonicalTx<'a, T, A>
impl<'a, T, A> Sync for CanonicalTx<'a, T, A>
impl<'a, T, A> Unpin for CanonicalTx<'a, T, A>where
T: Unpin,
impl<'a, T, A> UnwindSafe for CanonicalTx<'a, T, A>where
T: UnwindSafe,
A: RefUnwindSafe,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more