pub trait RateLimiter: Send {
    // Required method
    fn try_next(&mut self, peer: PeerId, addr: &Multiaddr, now: Instant) -> bool;
}Expand description
Allows rate limiting access to some resource based on the [PeerId] and
[Multiaddr] of a remote peer.