Trait vapcore_sync::ConnectionFilter[][src]

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

Connection filter. Each connection is checked against connection_allowed.

Required methods

pub fn connection_allowed(
    &self,
    own_id: &H512,
    connecting_id: &H512,
    direction: ConnectionDirection
) -> bool
[src]

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

Loading content...

Implementors

Loading content...