pub trait ExistingPeersFilter: Send + Sync {
    // Required method
    fn contains(&self, peer_id: &NodeIdShort) -> bool;
}
Expand description

Filter for overlay peers exchange.

Required Methods§

source

fn contains(&self, peer_id: &NodeIdShort) -> bool

Implementations on Foreign Types§

source§

impl ExistingPeersFilter for bool

source§

impl<S> ExistingPeersFilter for DashSet<NodeIdShort, S>where S: BuildHasher + Send + Sync + Clone,

source§

fn contains(&self, peer_id: &NodeIdShort) -> bool

source§

impl<S> ExistingPeersFilter for HashSet<NodeIdShort, S>where S: BuildHasher + Send + Sync,

source§

fn contains(&self, peer_id: &NodeIdShort) -> bool

source§

impl ExistingPeersFilter for ()

Implementors§