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: PartialOrd, A: PartialOrd> PartialOrd for TxNode<'a, T, A>
impl<'a, T: PartialOrd, A: PartialOrd> PartialOrd for TxNode<'a, T, A>
impl<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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