Struct bitcoin_peerman::TxHashInfo
source · pub struct TxHashInfo {
pub candidate_delayed: usize,
pub candidate_ready: usize,
pub candidate_best: usize,
pub requested: usize,
pub priority_candidate_best: Priority,
pub priority_best_candidate_ready: Priority,
pub peers: Vec<NodeId>,
}Expand description
| Per-txhash statistics object. Only | used for sanity checking. |
Fields§
§candidate_delayed: usize| Number of CANDIDATE_DELAYED announcements | for this txhash. |
candidate_ready: usize| Number of CANDIDATE_READY announcements | for this txhash. |
candidate_best: usize| Number of CANDIDATE_BEST announcements | for this txhash (at most one). |
requested: usize| Number of REQUESTED announcements | for this txhash (at most one; mutually | exclusive with CANDIDATE_BEST). |
priority_candidate_best: Priority| The priority of the CANDIDATE_BEST | announcement if one exists, or max() | otherwise. |
priority_best_candidate_ready: Priority| The highest priority of all CANDIDATE_READY | announcements (or min() if none exist). |
peers: Vec<NodeId>| All peers we have an announcement for | this txhash for. |
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TxHashInfo
impl Send for TxHashInfo
impl Sync for TxHashInfo
impl Unpin for TxHashInfo
impl UnwindSafe for TxHashInfo
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