pub enum PrometheusError {
Conflict {
name: String,
source: Error,
},
InvalidCollector {
name: String,
source: Error,
},
}Expand description
Construction failures of a PrometheusObserver.
Variants§
Conflict
A collector with this name is already registered: by another observer (clone that observer instead of constructing a second one), by someone else, or with another schema. Use a unique prefix or another registry. The collectors registered before the collision were unregistered again; their names stay bound to the DialCache schema in that registry.
Fields
§
source: ErrorThe registry’s rejection.
InvalidCollector
The prometheus crate rejected a collector definition, which only a
prefix that is not a valid metric name fragment can cause.
Trait Implementations§
Source§impl Debug for PrometheusError
impl Debug for PrometheusError
Source§impl Display for PrometheusError
impl Display for PrometheusError
Source§impl Error for PrometheusError
impl Error for PrometheusError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for PrometheusError
impl !UnwindSafe for PrometheusError
impl Freeze for PrometheusError
impl Send for PrometheusError
impl Sync for PrometheusError
impl Unpin for PrometheusError
impl UnsafeUnpin for PrometheusError
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