Enum glean_core::ErrorType
source · #[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 StructuralEq 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§
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more