Function metrics::set_boxed_recorder
source · pub fn set_boxed_recorder(
recorder: Box<dyn Recorder>
) -> Result<(), SetRecorderError>
Expand description
Sets the global recorder to a Box<Recorder>
.
This is a simple convenience wrapper over set_recorder
, which takes a Box<Recorder>
rather than a &'static Recorder
. See the document for set_recorder
for more
details.
Requires the std
feature.
Errors
An error is returned if a recorder has already been set.