Trait libp2p::relay::RateLimiter
source · pub trait RateLimiter: Send {
// Required method
fn try_next(&mut self, peer: PeerId, addr: &Multiaddr, now: Instant) -> bool;
}
Available on crate feature
relay
only.