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