pub struct Fallible<M>(pub Arc<Result<Arc<Metric<M>>>>);
Expand description
Fallible Metric
stored in metrics::Registry
.
We’re obligated to store Fallible
metrics inside metrics::Registry
,
because panicking earlier, rather than inside directly called
metrics::Recorder
methods, will poison locks the metrics::Registry
is built upon on.
Tuple Fields§
§0: Arc<Result<Arc<Metric<M>>>>
Implementations§
Trait Implementations§
Source§impl<M> HistogramFn for Fallible<M>where
Metric<M>: HistogramFn,
impl<M> HistogramFn for Fallible<M>where
Metric<M>: HistogramFn,
Auto Trait Implementations§
impl<M> Freeze for Fallible<M>
impl<M> !RefUnwindSafe for Fallible<M>
impl<M> Send for Fallible<M>
impl<M> Sync for Fallible<M>
impl<M> Unpin for Fallible<M>
impl<M> !UnwindSafe for Fallible<M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more