pub trait AccessControl: Send + Sync {
// Required method
fn allow(&self, subject: &Subject<'_>, action: Action) -> bool;
}Expand description
Policy that decides which peers this node talks to, and for what.
Synchronous by design: it runs on the accept loop, so a blocking policy would stall every other inbound connection. Keep its state in memory.