Skip to main content

Module host_filter

Module host_filter 

Source
Expand description

Host filters.

Host filters are essentially just a predicate over Peers. Currently, they are used by the Session to determine whether connections should be opened to a given node or not.

Structs§

AcceptAllHostFilter
Unconditionally accepts all nodes.
AllowListHostFilter
Accepts nodes whose addresses are present in the allow list provided during filter’s construction.
DcHostFilter
Accepts nodes from given DC.

Traits§

HostFilter
The HostFilter trait.