pub enum MetricError {
Show 15 variants
InvalidConfiguration,
InvalidDescriptor,
DuplicateRegistration,
InstrumentLimit,
SeriesLimit,
InvalidLabels,
WrongKind,
InvalidValue,
Initialization,
Unavailable,
Busy,
Timeout,
Export,
Closed,
Shutdown,
}Expand description
Stable, deliberately redacted errors: never contain labels or exporter credentials.
Variants§
InvalidConfiguration
InvalidDescriptor
DuplicateRegistration
InstrumentLimit
SeriesLimit
InvalidLabels
WrongKind
InvalidValue
Initialization
Busy
Timeout
Export
Closed
Shutdown
Trait Implementations§
Source§impl Clone for MetricError
impl Clone for MetricError
Source§fn clone(&self) -> MetricError
fn clone(&self) -> MetricError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricError
impl Debug for MetricError
Source§impl Display for MetricError
impl Display for MetricError
Source§impl Error for MetricError
impl Error for MetricError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for MetricError
impl PartialEq for MetricError
impl Copy for MetricError
impl Eq for MetricError
impl StructuralPartialEq for MetricError
Auto Trait Implementations§
impl Freeze for MetricError
impl RefUnwindSafe for MetricError
impl Send for MetricError
impl Sync for MetricError
impl Unpin for MetricError
impl UnsafeUnpin for MetricError
impl UnwindSafe for MetricError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.