#[repr(C)]pub enum ErrorType {
InvalidValue = 0,
InvalidLabel = 1,
InvalidState = 2,
InvalidOverflow = 3,
}
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 = 0
For when the value to be recorded does not match the metric-specific restrictions
InvalidLabel = 1
For when the label of a labeled metric does not match the restrictions
InvalidState = 2
For when the metric caught an invalid state while recording
InvalidOverflow = 3
For when the value to be recorded overflows the metric-specific upper range
Implementations§
Trait Implementations§
source§impl PartialEq for ErrorType
impl PartialEq for ErrorType
impl Copy for ErrorType
impl Eq for ErrorType
impl StructuralPartialEq for ErrorType
Auto Trait Implementations§
impl Freeze for ErrorType
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
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
source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>