pub struct TxNode<'a, T, A> {
pub txid: Txid,
pub tx: T,
pub anchors: &'a BTreeSet<A>,
pub last_seen_unconfirmed: Option<u64>,
}
Expand description
A transaction node in the TxGraph
.
Fields§
§txid: Txid
Txid of the transaction.
tx: T
A partial or full representation of the transaction.
anchors: &'a BTreeSet<A>
The blocks that the transaction is “anchored” in.
last_seen_unconfirmed: Option<u64>
The last-seen unix timestamp of the transaction as unconfirmed.
Trait Implementations§
source§impl<'a, T: Ord, A: Ord> Ord for TxNode<'a, T, A>
impl<'a, T: Ord, A: Ord> Ord for TxNode<'a, T, A>
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 TxNode<'a, T, A>
impl<'a, T: PartialEq, A: PartialEq> PartialEq for TxNode<'a, T, A>
source§impl<'a, T: PartialOrd, A: PartialOrd> PartialOrd for TxNode<'a, T, A>
impl<'a, T: PartialOrd, A: PartialOrd> PartialOrd for TxNode<'a, T, A>
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 TxNode<'a, T, A>
impl<'a, T, A> StructuralPartialEq for TxNode<'a, T, A>
Auto Trait Implementations§
impl<'a, T, A> Freeze for TxNode<'a, T, A>where
T: Freeze,
impl<'a, T, A> RefUnwindSafe for TxNode<'a, T, A>where
T: RefUnwindSafe,
A: RefUnwindSafe,
impl<'a, T, A> Send for TxNode<'a, T, A>
impl<'a, T, A> Sync for TxNode<'a, T, A>
impl<'a, T, A> Unpin for TxNode<'a, T, A>where
T: Unpin,
impl<'a, T, A> UnwindSafe for TxNode<'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