pub struct CandidateTransaction {
pub tx: Arc<Transaction>,
pub calculated_fee: u64,
pub calculated_mass: u64,
}Expand description
Transaction with additional metadata needed in order to be a candidate in the transaction selection algorithm
Fields§
§tx: Arc<Transaction>The actual transaction
calculated_fee: u64Populated fee
calculated_mass: u64Populated mass
Implementations§
Source§impl CandidateTransaction
impl CandidateTransaction
pub fn from_key(key: FeerateTransactionKey) -> Self
Trait Implementations§
Source§impl Clone for CandidateTransaction
impl Clone for CandidateTransaction
Source§impl Debug for CandidateTransaction
impl Debug for CandidateTransaction
impl Eq for CandidateTransaction
Source§impl PartialEq for CandidateTransaction
impl PartialEq for CandidateTransaction
impl StructuralPartialEq for CandidateTransaction
Auto Trait Implementations§
impl Freeze for CandidateTransaction
impl RefUnwindSafe for CandidateTransaction
impl Send for CandidateTransaction
impl Sync for CandidateTransaction
impl Unpin for CandidateTransaction
impl UnsafeUnpin for CandidateTransaction
impl UnwindSafe for CandidateTransaction
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<T> DebugAny for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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