Struct bitcoin_peerman::announcement::TxHashKey
source · pub struct TxHashKey(pub Arc<u256>, pub State, pub Priority);Expand description
| The ByTxHash index is sorted by (txhash, state, | priority). | | Note: priority == 0 whenever state != | CANDIDATE_READY. | | Uses: | | - Deleting all announcements with a given | txhash in ForgetTxHash. | | - Finding the best CANDIDATE_READY to convert | to CANDIDATE_BEST, when no other | CANDIDATE_READY or REQUESTED announcement | exists for that txhash. | | - Determining when no more non-COMPLETED | announcements for a given txhash exist, so | the COMPLETED ones can be deleted.
Tuple Fields§
§0: Arc<u256>§1: State§2: PriorityTrait Implementations§
source§impl From<(&Announcement, &PriorityComputer)> for TxHashKey
impl From<(&Announcement, &PriorityComputer)> for TxHashKey
source§fn from(x: (&Announcement, &PriorityComputer)) -> Self
fn from(x: (&Announcement, &PriorityComputer)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TxHashKey
impl Send for TxHashKey
impl Sync for TxHashKey
impl Unpin for TxHashKey
impl UnwindSafe for TxHashKey
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more