PeerPredicate

Trait PeerPredicate 

Source
pub trait PeerPredicate {
    // Required method
    fn matches(&mut self, node_id: ClusterNodeId, peer_id: &PeerId) -> bool;
}

Required Methods§

Source

fn matches(&mut self, node_id: ClusterNodeId, peer_id: &PeerId) -> bool

Implementations on Foreign Types§

Source§

impl PeerPredicate for (ClusterNodeId, &PeerId)

Source§

fn matches(&mut self, node_id: ClusterNodeId, peer_id: &PeerId) -> bool

Source§

impl PeerPredicate for (ClusterNodeId, &mut BTreeSet<PeerId>)

Source§

fn matches(&mut self, node_id: ClusterNodeId, peer_id: &PeerId) -> bool

Implementors§