Enum metrics_prometheus::failure::Action
source · pub enum Action {
NoOp,
Panic,
}
Expand description
Possible actions on an encountered prometheus::Error
inside
metrics::Recorder
methods.
Variants§
NoOp
Return a no-op metric implementation (see metrics::Counter::noop()
for example).
Panic
Panic with the encountered prometheus::Error
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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