Struct bitcoin_peerman::ByTxHashIndex
source · pub struct ByTxHashIndex {
pub parent: Arc<AnnouncementIndex>,
pub order: Vec<usize>,
pub computer: Arc<PriorityComputer>,
}Fields§
§parent: Arc<AnnouncementIndex>§order: Vec<usize>§computer: Arc<PriorityComputer>Trait Implementations§
source§impl AnnouncementIndexIndex for ByTxHashIndex
impl AnnouncementIndexIndex for ByTxHashIndex
type IteratorType = ByTxHashIterator
type KeyType = TxHashKey
fn len(&self) -> usize
fn is_empty(&self) -> bool
fn lower_bound(&self, x: &Self::KeyType) -> Option<Self::IteratorType>where <Self as AnnouncementIndexIndex>::IteratorType: Iterator,
fn lower_bound_with_peekable( &self, x: &Self::KeyType ) -> CppIter<Self::IteratorType>where <Self as AnnouncementIndexIndex>::IteratorType: Iterator,
fn push(&mut self, x: &Announcement) -> Result<(), &'static str>
fn count(&self, x: &Self::KeyType) -> usize
fn contains_key(&self, x: &Self::KeyType) -> bool
fn remove(&mut self, x: &Self::KeyType) -> CppIter<Self::IteratorType>where <Self as AnnouncementIndexIndex>::IteratorType: Iterator,
fn remove_announcement<T>(&mut self, x: &Announcement) -> T
fn get(&self, x: &Self::KeyType) -> Option<Self::IteratorType>where <Self as AnnouncementIndexIndex>::IteratorType: Iterator,
fn get_peekable(&self, x: &Self::KeyType) -> CppIter<Self::IteratorType>where <Self as AnnouncementIndexIndex>::IteratorType: Iterator,
fn modify_with_peekable<I: AnnouncementIterator>( &mut self, it: &CppIter<I>, modifier: AnnouncementModifier )
fn modify<I: AnnouncementIterator>( &mut self, it: &I, modifier: AnnouncementModifier )
source§impl Clone for ByTxHashIndex
impl Clone for ByTxHashIndex
source§fn clone(&self) -> ByTxHashIndex
fn clone(&self) -> ByTxHashIndex
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 Debug for ByTxHashIndex
impl Debug for ByTxHashIndex
source§impl IntoIterator for ByTxHashIndex
impl IntoIterator for ByTxHashIndex
Auto Trait Implementations§
impl RefUnwindSafe for ByTxHashIndex
impl Send for ByTxHashIndex
impl Sync for ByTxHashIndex
impl Unpin for ByTxHashIndex
impl UnwindSafe for ByTxHashIndex
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