ExistingPeersFilter

Trait ExistingPeersFilter 

Source
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 ExistingPeersFilter for ()

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§