pub trait ConnectionFilter: Send + Sync {
    fn connection_allowed(
        &self,
        own_id: &H512,
        connecting_id: &H512,
        direction: ConnectionDirection
    ) -> bool; }
Expand description

Connection filter. Each connection is checked against connection_allowed.

Required methods

Filter a connection. Returns true if connection should be allowed. false if rejected.

Implementors