Enum substrate_prometheus_endpoint::PrometheusError [−][src]
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.
Fields of InconsistentCardinality
Msg(String)An error message which is only a string.
Tuple Fields of Msg
0: StringIo(Error)An error containing a std::io::Error.
Tuple Fields of Io
0: ErrorTrait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. 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