pub enum ErrorType {
InvalidValue,
InvalidLabel,
InvalidState,
InvalidOverflow,
}
Expand description
The possible error types for metric recording.
Note: the cases in this enum must be kept in sync with the ones
in the platform-specific code (e.g. ErrorType.kt
) and with the
metrics in the registry files.
Variants
InvalidValue
For when the value to be recorded does not match the metric-specific restrictions
InvalidLabel
For when the label of a labeled metric does not match the restrictions
InvalidState
For when the metric caught an invalid state while recording
InvalidOverflow
For when the value to be recorded overflows the metric-specific upper range
Implementations
Trait Implementations
impl Copy for ErrorType
impl StructuralPartialEq for ErrorType
Auto Trait Implementations
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more