Struct bitcoin_peerman::ByPeerIndex
source · pub struct ByPeerIndex {
pub parent: Arc<AnnouncementIndex>,
pub order: Vec<usize>,
}Fields§
§parent: Arc<AnnouncementIndex>§order: Vec<usize>Trait Implementations§
source§impl AnnouncementIndexIndex for ByPeerIndex
impl AnnouncementIndexIndex for ByPeerIndex
type IteratorType = ByPeerIterator
type KeyType = PeerKey
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 ByPeerIndex
impl Clone for ByPeerIndex
source§fn clone(&self) -> ByPeerIndex
fn clone(&self) -> ByPeerIndex
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 ByPeerIndex
impl Debug for ByPeerIndex
source§impl IntoIterator for ByPeerIndex
impl IntoIterator for ByPeerIndex
Auto Trait Implementations§
impl RefUnwindSafe for ByPeerIndex
impl Send for ByPeerIndex
impl Sync for ByPeerIndex
impl Unpin for ByPeerIndex
impl UnwindSafe for ByPeerIndex
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