var searchIndex = {}; searchIndex["ratelimit"] = {"doc":"A token bucket ratelimiter for rust which can be used by either a single\nthread or shared across threads using a mpsc synchronous channel","items":[[3,"Config","ratelimit","",null,null],[3,"Ratelimit","","",null,null],[5,"cycles","","",null,{"inputs":[{"name":"duration"},{"name":"duration"}],"output":{"name":"f64"}}],[11,"build","","returns a Ratelimit from the Config",0,null],[11,"quantum","","sets the number of tokens to add per interval",0,null],[11,"capacity","","sets the bucket capacity",0,null],[11,"interval","","set the duration between token adds",0,null],[11,"frequency","","set the frequency in Hz of the ratelimiter",0,null],[11,"default","","",0,{"inputs":[],"output":{"name":"config"}}],[11,"default","","",1,{"inputs":[],"output":{"name":"ratelimit"}}],[11,"new","","create a new default ratelimit instance",1,{"inputs":[],"output":{"name":"ratelimit"}}],[11,"configure","","create a new `Config` for building a custom `Ratelimit`",1,{"inputs":[],"output":{"name":"config"}}],[11,"run","","run the ratelimiter",1,null],[11,"clone_sender","","return clone of SyncSender for client use",1,null],[11,"block","","this call is the blocking API of Ratelimit",1,null]],"paths":[[3,"Config"],[3,"Ratelimit"]]}; initSearch(searchIndex);