pub struct Proxy { /* fields omitted */ }
A dynamic proxy point for app and lib metrics.
Decouples metrics definition from backend configuration.
Allows defining metrics before a concrete type has been selected.
Allows replacing metrics backend on the fly at runtime.
Create a new "private" metric proxy root. This is usually not what you want.
Since this proxy will not be part of the standard proxy tree,
it will need to be configured independently and since downstream code may not know about
its existence this may never happen and metrics will not be proxyed anywhere.
If you want to use the standard proxy tree, use #metric_proxy() instead.
Replace target for this proxy and it's children.
Replace target for this proxy and it's children.
Replace target for this proxy and it's children.
Replace target for this proxy and it's children.
Lookup or create a proxy stub for the requested metric.
Flush does nothing by default.
Return the default root metric proxy.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static