Trait scylla::transport::host_filter::HostFilter

source ·
pub trait HostFilter: Send + Sync {
    // Required method
    fn accept(&self, peer: &Peer) -> bool;
}
Expand description

The HostFilter trait.

Required Methods§

source

fn accept(&self, peer: &Peer) -> bool

Returns whether a peer should be accepted or not.

Implementors§