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 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§
§impl<T, UT> HandleAlloc<UT> for Twhere
T: Send + Sync,
impl<T, UT> HandleAlloc<UT> for Twhere
T: Send + Sync,
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>