Struct bitcoin_peerman::AnnouncementIndex
source · pub struct AnnouncementIndex {
pub data: Vec<Announcement>,
pub by_peer: ByPeerIndex,
pub by_txhash: ByTxHashIndex,
pub by_time: ByTimeIndex,
}Expand description
| Data type for the main data structure
| (Announcement objects with ByPeer/ByTxHash/ByTime
| indexes).
|
| using Index = boost::multi_index_container<
| Announcement,
| boost::multi_index::indexed_by<
| boost::multi_index::ordered_unique< boost::multi_index::tag
Fields§
§data: Vec<Announcement>§by_peer: ByPeerIndex§by_txhash: ByTxHashIndex§by_time: ByTimeIndexImplementations§
source§impl AnnouncementIndex
impl AnnouncementIndex
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get<I: AnnouncementIterator>( &self ) -> <<I as AnnouncementIterator>::Tag as AnnouncementIndexTag>::Index
pub fn get_by_peer(&self) -> ByPeerIndex
pub fn get_by_txhash(&self) -> ByTxHashIndex
pub fn get_by_time(&self) -> ByTimeIndex
pub fn insert(&mut self, item: Announcement)
pub fn empty(&self) -> bool
Trait Implementations§
source§impl Clone for AnnouncementIndex
impl Clone for AnnouncementIndex
source§fn clone(&self) -> AnnouncementIndex
fn clone(&self) -> AnnouncementIndex
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 AnnouncementIndex
impl Debug for AnnouncementIndex
source§impl ProjectIndex for AnnouncementIndex
impl ProjectIndex for AnnouncementIndex
fn project_from_peekable<Src: AnnouncementIterator, Dst: AnnouncementIterator>( &self, x: &CppIter<Src> ) -> Option<CppIter<Dst>>
fn project<Src: AnnouncementIterator, Dst: AnnouncementIterator>( &self, x: &Src ) -> Option<Dst>
Auto Trait Implementations§
impl RefUnwindSafe for AnnouncementIndex
impl Send for AnnouncementIndex
impl Sync for AnnouncementIndex
impl Unpin for AnnouncementIndex
impl UnwindSafe for AnnouncementIndex
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