pub enum MetricsRegistryError {
Registration {
metric: &'static str,
message: String,
},
Encode(String),
}Expand description
Typed metrics registry errors.
Variants§
Trait Implementations§
Source§impl Clone for MetricsRegistryError
impl Clone for MetricsRegistryError
Source§fn clone(&self) -> MetricsRegistryError
fn clone(&self) -> MetricsRegistryError
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 MetricsRegistryError
impl Debug for MetricsRegistryError
Source§impl Display for MetricsRegistryError
impl Display for MetricsRegistryError
Source§impl Error for MetricsRegistryError
impl Error for MetricsRegistryError
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 MetricsRegistryError
impl PartialEq for MetricsRegistryError
impl Eq for MetricsRegistryError
impl StructuralPartialEq for MetricsRegistryError
Auto Trait Implementations§
impl Freeze for MetricsRegistryError
impl RefUnwindSafe for MetricsRegistryError
impl Send for MetricsRegistryError
impl Sync for MetricsRegistryError
impl Unpin for MetricsRegistryError
impl UnsafeUnpin for MetricsRegistryError
impl UnwindSafe for MetricsRegistryError
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