Trait vapcore_sync::ConnectionFilter [−][src]
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]
&self,
own_id: &H512,
connecting_id: &H512,
direction: ConnectionDirection
) -> bool
Filter a connection. Returns true
if connection should be allowed. false
if rejected.