pub struct CanonicalTx<'a, T, A> {
pub chain_position: ChainPosition<A>,
pub tx_node: TxNode<'a, T, A>,
}
Expand description
A transaction that is deemed to be part of the canonical history.
Fields§
§chain_position: ChainPosition<A>
How the transaction is observed in the canonical chain (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: PartialOrd, A: PartialOrd> PartialOrd for CanonicalTx<'a, T, A>
impl<'a, T: PartialOrd, A: PartialOrd> PartialOrd for CanonicalTx<'a, T, A>
impl<'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>
impl<'a, T, A> RefUnwindSafe for CanonicalTx<'a, T, A>where
A: RefUnwindSafe,
T: 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>
impl<'a, T, A> UnwindSafe for CanonicalTx<'a, T, A>
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