Network_pool.Rate_limiterval create : capacity:(int * [ `Per of Core.Time.Span.t ]) -> tval add :
t ->
Network_peer.Envelope.Sender.t ->
now:Core.Time.t ->
score:int ->
[ `Within_capacity | `Capacity_exceeded ]val next_expires : t -> Network_peer.Envelope.Sender.t -> Core.Time.tval summary : t -> Yojson.Safe.t