SYMBOL INDEX (232 symbols across 24 files) FILE: demos/src/baz.rs type LibError (line 8) | pub enum LibError { type BazError (line 17) | pub enum BazError { type Baz (line 25) | pub struct Baz { method bir (line 34) | pub fn bir(&self) { method bor (line 41) | pub fn bor(&self) { method foo (line 46) | pub fn foo(&self) { method bar (line 55) | pub fn bar(&self, should_fail: bool) -> Result<(), &'static str> { method baz (line 64) | pub async fn baz(&self, should_fail: bool) -> Result<(), &'static str> { method bazium (line 76) | pub fn bazium( method bazle (line 93) | pub async fn bazle(&self, should_fail: bool) -> Result<(), BazError> { method bad (line 103) | pub unsafe fn bad(&self, v: &[u8]) { method bur (line 108) | pub fn bur() { FILE: demos/src/biz.rs type Biz (line 4) | pub struct Biz { method biz (line 13) | pub fn biz(&self) { FILE: demos/src/main.rs type TestMetrics (line 10) | struct TestMetrics { function test (line 15) | fn test(should_fail: bool, metrics: &TestMetrics) -> Result<(), ()> { function test_incr (line 30) | fn test_incr(metrics: &TestMetrics) -> Result<(), ()> { function sync_procmacro_demo (line 36) | fn sync_procmacro_demo(baz: &Baz) { function async_procmacro_demo (line 43) | async fn async_procmacro_demo(baz: Baz) { function simple_api_demo (line 54) | fn simple_api_demo() { function test_biz (line 69) | fn test_biz() { function do_test_biz (line 78) | fn do_test_biz(biz: &Arc) { function main (line 98) | fn main() { FILE: metered-macro/src/error_count.rs function error_count (line 6) | pub fn error_count(attrs: TokenStream, item: TokenStream) -> syn::Result... type FieldWithNestedAttribute (line 160) | type FieldWithNestedAttribute = Option<(Field, Attribute)>; function get_nested_attrs (line 168) | fn get_nested_attrs(input: &mut ItemEnum) -> syn::Result { type ErrorCountKeyValAttribute (line 18) | pub struct ErrorCountKeyValAttribute { method validate (line 23) | fn validate(&self, input: ParseStream<'_>) -> Result<()> { method to_error_count_opts (line 57) | pub fn to_error_count_opts(&self) -> ErrorCountOpts<'_> { method parse (line 110) | fn parse(input: ParseStream<'_>) -> Result { type ErrorCountNameOption (line 127) | pub type ErrorCountNameOption = KVOption; type ErrorCountVisibilityOption (line 129) | pub type ErrorCountVisibilityOption = KVOption &str { method parse (line 152) | fn parse(input: ParseStream<'_>) -> Result { FILE: metered-macro/src/lib.rs function metered (line 87) | pub fn metered(attrs: TokenStream, item: TokenStream) -> TokenStream { function error_count (line 151) | pub fn error_count(attrs: TokenStream, item: TokenStream) -> TokenStream { FILE: metered-macro/src/measure_opts.rs type MeasureRequest (line 13) | pub struct MeasureRequest<'a> { function ident (line 20) | pub fn ident(&self) -> syn::Ident { function type_path (line 24) | pub fn type_path(&self) -> &syn::TypePath { type MeasureRequestAttribute (line 29) | pub enum MeasureRequestAttribute { method to_requests (line 35) | pub fn to_requests(&self) -> Vec> { method parse (line 44) | fn parse(input: ParseStream<'_>) -> Result { type NonEmptyMeasureRequestAttribute (line 55) | pub struct NonEmptyMeasureRequestAttribute { method to_requests (line 61) | pub fn to_requests(&self) -> Vec> { method parse (line 71) | fn parse(input: ParseStream<'_>) -> Result { type MeasureRequestAttributeInner (line 87) | pub enum MeasureRequestAttributeInner { method to_requests (line 93) | pub fn to_requests(&self) -> Vec> { method parse (line 102) | fn parse(input: ParseStream<'_>) -> Result { type MeasureRequestTypePathAttribute (line 113) | pub struct MeasureRequestTypePathAttribute { method to_requests (line 118) | pub fn to_requests(&self) -> Vec> { method parse (line 133) | fn parse(input: ParseStream<'_>) -> Result { type MeasureRequestKeyValAttribute (line 140) | pub struct MeasureRequestKeyValAttribute { method validate (line 145) | fn validate(&self, input: ParseStream<'_>) -> Result<()> { method to_requests (line 185) | pub fn to_requests(&self) -> Vec> { function make_field_name (line 223) | fn make_field_name(type_path: &syn::TypePath) -> String { method parse (line 236) | fn parse(input: ParseStream<'_>) -> Result { type MeasureTypeOption (line 251) | pub type MeasureTypeOption = KVOption; type MeasureOptions (line 254) | pub enum MeasureOptions { method as_str (line 260) | pub fn as_str(&self) -> &str { method parse (line 270) | fn parse(input: ParseStream<'_>) -> Result { FILE: metered-macro/src/metered.rs function metered (line 11) | pub fn metered(attrs: TokenStream, item: TokenStream) -> syn::Result &'static str { function measure_list (line 174) | fn measure_list( FILE: metered-macro/src/metered_opts.rs type Metered (line 12) | pub struct Metered<'a> { type MeteredKeyValAttribute (line 19) | pub struct MeteredKeyValAttribute { method validate (line 24) | fn validate(&self, input: ParseStream<'_>) -> Result<()> { method to_metered (line 58) | pub fn to_metered(&self) -> Metered<'_> { method parse (line 113) | fn parse(input: ParseStream<'_>) -> Result { type MeteredRegistryOption (line 130) | pub type MeteredRegistryOption = KVOption; type MeteredRegistryExprOption (line 132) | pub type MeteredRegistryExprOption = KVOption &str { method parse (line 155) | fn parse(input: ParseStream<'_>) -> Result { FILE: metered/src/atomic.rs type AtomicInt (line 17) | pub struct AtomicInt { function get (line 24) | pub fn get(&self) -> T { method fmt (line 30) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { function test_atomic_wraps (line 96) | fn test_atomic_wraps() { FILE: metered/src/clear.rs type Clear (line 13) | pub trait Clear { method clear (line 15) | fn clear(&self); method clear (line 19) | fn clear(&self) { method clear (line 25) | fn clear(&self) { type Clearable (line 32) | pub trait Clearable { method is_cleared (line 34) | fn is_cleared(&self) -> bool; FILE: metered/src/common/error_count.rs type ErrorCount (line 21) | pub struct ErrorCount>(pub C); type E (line 26) | type E = (); method enter (line 27) | fn enter(&self) {} function on_result (line 31) | fn on_result(&self, _: (), r: &Result) -> Advice { method clear (line 40) | fn clear(&self) { type Target (line 46) | type Target = C; method deref (line 48) | fn deref(&self) -> &Self::Target { FILE: metered/src/common/hit_count.rs type HitCount (line 21) | pub struct HitCount>(pub C); type E (line 26) | type E = (); method enter (line 27) | fn enter(&self) -> Self::E { method clear (line 35) | fn clear(&self) { type Target (line 41) | type Target = C; method deref (line 43) | fn deref(&self) -> &Self::Target { FILE: metered/src/common/in_flight.rs type InFlight (line 30) | pub struct InFlight>(pub G); type E (line 35) | type E = (); method enter (line 36) | fn enter(&self) { function leave_scope (line 42) | fn leave_scope(&self, _: ()) -> Advice { method clear (line 49) | fn clear(&self) { type Target (line 56) | type Target = G; method deref (line 58) | fn deref(&self) -> &Self::Target { FILE: metered/src/common/none_count.rs type NoneCount (line 22) | pub struct NoneCount>(pub C); type E (line 29) | type E = (); method enter (line 30) | fn enter(&self) {} function on_result (line 34) | fn on_result(&self, _: (), r: &Result, E>) -> Advice { function on_result (line 43) | fn on_result(&self, _: (), r: &Option) -> Advice { method clear (line 52) | fn clear(&self) { type Target (line 58) | type Target = C; method deref (line 60) | fn deref(&self) -> &Self::Target { FILE: metered/src/common/response_time.rs type ResponseTime (line 25) | pub struct ResponseTime Self { method default (line 53) | fn default() -> Self { type E (line 64) | type E = T; method enter (line 66) | fn enter(&self) -> T { function leave_scope (line 72) | fn leave_scope(&self, enter: T) -> Advice { method clear (line 80) | fn clear(&self) { method serialize (line 86) | fn serialize(&self, serializer: S) -> Result method fmt (line 96) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type Target (line 102) | type Target = H; method deref (line 104) | fn deref(&self) -> &Self::Target { FILE: metered/src/common/throughput/atomic_tps.rs type AtomicTxPerSec (line 12) | pub struct AtomicTxPerSec { function histogram (line 19) | pub fn histogram(&self) -> HdrHistogram { method on_result (line 26) | fn on_result(&self) { method default (line 32) | fn default() -> Self { method clear (line 40) | fn clear(&self) { method serialize (line 46) | fn serialize(&self, serializer: S) -> Result method fmt (line 57) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { FILE: metered/src/common/throughput/mod.rs type Throughput (line 30) | pub struct Throughput Self { type E (line 50) | type E = (); method enter (line 52) | fn enter(&self) {} method clear (line 56) | fn clear(&self) { function leave_scope (line 62) | fn leave_scope(&self, _enter: ()) -> Advice { method serialize (line 69) | fn serialize(&self, serializer: S) -> Result method fmt (line 79) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type Target (line 85) | type Target = P; method deref (line 87) | fn deref(&self) -> &Self::Target { FILE: metered/src/common/throughput/tx_per_sec.rs type TxPerSec (line 11) | pub struct TxPerSec { method default (line 21) | fn default() -> Self { method on_result (line 36) | fn on_result(&self) { method clear (line 42) | fn clear(&self) { function update (line 49) | fn update(&mut self) { function on_result (line 72) | pub(crate) fn on_result(&mut self) { function clear (line 77) | pub(crate) fn clear(&mut self) { method serialize (line 86) | fn serialize(&self, serializer: S) -> Result method fmt (line 96) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { FILE: metered/src/hdr_histogram.rs type AtomicHdrHistogram (line 9) | pub struct AtomicHdrHistogram { method histogram (line 15) | pub fn histogram(&self) -> HdrHistogram { method with_bound (line 21) | fn with_bound(max_bound: u64) -> Self { method record (line 27) | fn record(&self, value: u64) { method clear (line 33) | fn clear(&self) { method serialize (line 39) | fn serialize(&self, serializer: S) -> Result method fmt (line 52) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type HdrHistogram (line 64) | pub struct HdrHistogram { method with_bound (line 73) | pub fn with_bound(max_bound: u64) -> Self { method bound (line 81) | pub fn bound(&self) -> u64 { method record (line 89) | pub fn record(&mut self, value: u64) { method record_n (line 98) | pub fn record_n(&mut self, value: u64, count: u64) { method clear (line 104) | pub fn clear(&mut self) { method len (line 109) | pub fn len(&self) -> u64 { method is_empty (line 114) | pub fn is_empty(&self) -> bool { method min (line 120) | pub fn min(&self) -> u64 { method max (line 127) | pub fn max(&self) -> u64 { method mean (line 132) | pub fn mean(&self) -> f64 { method stdev (line 138) | pub fn stdev(&self) -> f64 { method p90 (line 143) | pub fn p90(&self) -> u64 { method p95 (line 148) | pub fn p95(&self) -> u64 { method p99 (line 153) | pub fn p99(&self) -> u64 { method p999 (line 158) | pub fn p999(&self) -> u64 { method p9999 (line 163) | pub fn p9999(&self) -> u64 { method serialize (line 169) | fn serialize(&self, serializer: S) -> Result type MetricAlias (line 215) | struct MetricAlias(&'static str, T); method serialize (line 217) | fn serialize(&self, serializer: S) -> Result method fmt (line 226) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method with_bound (line 251) | fn with_bound(max_value: u64) -> Self { method record (line 255) | fn record(&self, value: u64) { method clear (line 261) | fn clear(&self) { FILE: metered/src/lib.rs function error_variant_serializer (line 214) | pub fn error_variant_serializer( function error_variant_serializer_skip_cleared (line 225) | pub fn error_variant_serializer_skip_cleared< type ErrorBreakdown (line 241) | pub trait ErrorBreakdown { type ErrorBreakdownIncr (line 248) | pub trait ErrorBreakdownIncr { method incr (line 250) | fn incr(&self, e: &E); FILE: metered/src/metric.rs type Metric (line 15) | pub trait Metric: Default + OnResultMut + Clear + Serialize {} function on_result (line 19) | pub fn on_result>(metric: &A, _enter: ::E, _... type ExitGuard (line 23) | pub struct ExitGuard<'a, R, M: Metric> { function new (line 32) | pub fn new(metric: &'a M) -> Self { function on_result (line 41) | pub fn on_result(mut self, result: &mut R) { method drop (line 51) | fn drop(&mut self) { type Counter (line 61) | pub trait Counter: Default + Clear + Clearable + Serialize { method incr (line 63) | fn incr(&self) { method incr_by (line 71) | fn incr_by(&self, count: usize); type Gauge (line 75) | pub trait Gauge: Default + Clear + Serialize { method incr (line 77) | fn incr(&self) { method decr (line 82) | fn decr(&self) { method incr_by (line 90) | fn incr_by(&self, count: usize); method decr_by (line 96) | fn decr_by(&self, count: usize); type Histogram (line 100) | pub trait Histogram: Clear + Serialize { method with_bound (line 102) | fn with_bound(max_value: u64) -> Self; method record (line 108) | fn record(&self, value: u64); FILE: metered/src/num_wrapper.rs type NumWrapper (line 41) | pub(crate) struct NumWrapper(PhantomData); function incr_by (line 107) | fn incr_by(cc: u8, count: usize) -> u8 { function incr_by_naive (line 111) | fn incr_by_naive(mut cc: u8, count: usize) -> u8 { function decr_by (line 118) | fn decr_by(cc: u8, count: usize) -> u8 { function decr_by_naive (line 122) | fn decr_by_naive(mut cc: u8, count: usize) -> u8 { FILE: metered/src/time_source.rs type Instant (line 10) | pub trait Instant { method now (line 12) | fn now() -> Self; method elapsed_time (line 18) | fn elapsed_time(&self) -> u64; method units (line 21) | fn units(duration: Duration) -> u64; constant ONE_SEC (line 24) | const ONE_SEC: u64; constant ONE_SEC (line 32) | const ONE_SEC: u64 = 1_000; method now (line 34) | fn now() -> Self { method elapsed_time (line 38) | fn elapsed_time(&self) -> u64 { method units (line 44) | fn units(duration: Duration) -> u64 { constant ONE_SEC (line 54) | const ONE_SEC: u64 = 1_000_000; method now (line 56) | fn now() -> Self { method elapsed_time (line 60) | fn elapsed_time(&self) -> u64 { method units (line 66) | fn units(duration: Duration) -> u64 { type StdInstant (line 30) | pub struct StdInstant(std::time::Instant); type StdInstantMicros (line 52) | pub struct StdInstantMicros(std::time::Instant);