var searchIndex = {}; searchIndex["cadence"] = {"doc":"An extensible Statsd client for Rust!","items":[[3,"StatsdClient","cadence","Client for Statsd that implements various traits to record metrics.",null,null],[3,"ConsoleMetricSink","","Implementation of a `MetricSink` that emits metrics to the console.",null,null],[3,"LoggingMetricSink","","Implementation of a `MetricSink` that emits metrics using the`log!` macro.",null,null],[3,"NopMetricSink","","Implementation of a `MetricSink` that discards all metrics.",null,null],[3,"UdpMetricSink","","Implementation of a `MetricSink` that emits metrics over UDP.",null,null],[3,"MetricError","","Error generated by this library potentially wrapping another\ntype of error (exposed via the `Error` trait).",null,null],[3,"Counter","","Counters are simple values incremented or decremented by a client.",null,null],[3,"Timer","","Timers are a positive number of milliseconds between a start and end point.",null,null],[3,"Gauge","","Gauges are an instantaneous value determined by the client.",null,null],[3,"Meter","","Meters measure the rate at which events occur as determined by the server.",null,null],[4,"ErrorKind","","Potential categories an error from this library falls into.",null,null],[13,"InvalidInput","","",0,null],[13,"IoError","","",0,null],[11,"from_sink","","Create a new client instance that will use the given prefix for\nall metrics emitted to the given `MetricSink` implementation.",1,{"inputs":[{"name":"str"},{"name":"t"}],"output":{"name":"statsdclient"}}],[11,"from_udp_host","","Create a new client instance that will use the given prefix to send\nmetrics to the given host over UDP using an appropriate sink. This is\nthe contruction method that most users of this library will use.",1,{"inputs":[{"name":"str"},{"name":"a"}],"output":{"name":"metricresult"}}],[11,"incr","","",1,null],[11,"decr","","",1,null],[11,"count","","",1,null],[11,"time","","",1,null],[11,"gauge","","",1,null],[11,"mark","","",1,null],[11,"meter","","",1,null],[11,"new","","Construct a new `UdpMetricSink` instance.",2,{"inputs":[{"name":"a"},{"name":"udpsocket"}],"output":{"name":"metricresult"}}],[11,"emit","","",2,null],[11,"emit","","",3,null],[11,"emit","","",4,null],[11,"new","","",5,{"inputs":[{"name":"loglevel"}],"output":{"name":"loggingmetricsink"}}],[11,"emit","","",5,null],[11,"hash","","",6,null],[11,"fmt","","",6,null],[11,"eq","","",6,null],[11,"ne","","",6,null],[11,"new","","",6,{"inputs":[{"name":"str"},{"name":"str"},{"name":"i64"}],"output":{"name":"counter"}}],[11,"hash","","",7,null],[11,"fmt","","",7,null],[11,"eq","","",7,null],[11,"ne","","",7,null],[11,"new","","",7,{"inputs":[{"name":"str"},{"name":"str"},{"name":"u64"}],"output":{"name":"timer"}}],[11,"hash","","",8,null],[11,"fmt","","",8,null],[11,"eq","","",8,null],[11,"ne","","",8,null],[11,"new","","",8,{"inputs":[{"name":"str"},{"name":"str"},{"name":"u64"}],"output":{"name":"gauge"}}],[11,"hash","","",9,null],[11,"fmt","","",9,null],[11,"eq","","",9,null],[11,"ne","","",9,null],[11,"new","","",9,{"inputs":[{"name":"str"},{"name":"str"},{"name":"u64"}],"output":{"name":"meter"}}],[11,"clone","","",0,null],[11,"hash","","",0,null],[11,"fmt","","",0,null],[11,"eq","","",0,null],[11,"fmt","","",10,null],[11,"kind","","Return the kind of the error",10,null],[11,"fmt","","",10,null],[11,"description","","",10,null],[11,"cause","","",10,null],[11,"from","","",10,{"inputs":[{"name":"error"}],"output":{"name":"metricerror"}}],[11,"from","","",10,null],[6,"MetricResult","","",null,null],[17,"DEFAULT_PORT","","",null,null],[8,"Counted","","Trait for incrementing and decrementing counters.",null,null],[10,"incr","","Increment the counter by `1`",11,null],[10,"decr","","Decrement the counter by `1`",11,null],[10,"count","","Increment or decrement the counter by the given amount",11,null],[8,"Timed","","Trait for recording timings in milliseconds.",null,null],[10,"time","","Record a timing in milliseconds with the given key",12,null],[8,"Gauged","","Trait for recording gauge values.",null,null],[10,"gauge","","Record a gauge value with the given key",13,null],[8,"Metered","","Trait for recording meter values.",null,null],[10,"mark","","Record a single metered event with the given key",14,null],[10,"meter","","Record a meter value with the given key",14,null],[8,"MetricSink","","Trait for various backends that send Statsd metrics somewhere.",null,null],[10,"emit","","Send the Statsd metric using this sink and return the number of bytes\nwritten or an I/O error.",15,null]],"paths":[[4,"ErrorKind"],[3,"StatsdClient"],[3,"UdpMetricSink"],[3,"NopMetricSink"],[3,"ConsoleMetricSink"],[3,"LoggingMetricSink"],[3,"Counter"],[3,"Timer"],[3,"Gauge"],[3,"Meter"],[3,"MetricError"],[8,"Counted"],[8,"Timed"],[8,"Gauged"],[8,"Metered"],[8,"MetricSink"]]}; initSearch(searchIndex);