Enum substrate_prometheus_endpoint::PrometheusError [−][src]
pub enum PrometheusError {
AlreadyReg,
InconsistentCardinality {
expect: usize,
got: usize,
},
Msg(String),
Io(Error),
}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 Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> WithSubscriber for T[src]
impl<T> WithSubscriber for T[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,