Enum prometheus::Error [−][src]
pub enum Error {
AlreadyReg,
InconsistentCardinality {
expect: usize,
got: usize,
},
Msg(String),
Io(Error),
Protobuf(ProtobufError),
}
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: String
Io(Error)
An error containing a std::io::Error
.
Tuple Fields of Io
0: Error
Protobuf(ProtobufError)
An error containing a protobuf::error::ProtobufError
.
Tuple Fields of Protobuf
Trait Implementations
Performs the conversion.