scylla::transport::host_filter

Trait 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§