Enum substrate_prometheus_endpoint::PrometheusError [−]
pub enum PrometheusError { AlreadyReg, InconsistentCardinality { expect: usize, got: usize, }, Msg(String), Io(Error), }
Expand description
The error types for prometheus.
Variants
A duplicate metric collector has already been registered.
The label cardinality was inconsistent.
Show fields
Msg(String)
An error message which is only a string.
Io(Error)
An error containing a std::io::Error
.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more