pub enum PrometheusDeserializationError {
ParseError {
message: String,
},
UnsupportedType {
metric_name: String,
metric_type: String,
},
UnknownType {
metric_name: String,
},
ValueMismatch {
metric_name: String,
expected_type: String,
actual: String,
},
UnknownValue {
metric_name: String,
},
LabelConversion {
metric_name: String,
message: String,
},
CollectionError {
message: String,
},
}Variants§
ParseError
The Prometheus text could not be parsed at all (syntax error).
UnsupportedType
The parser emitted a metric type that is syntactically valid but that this implementation does not yet support (e.g. Histogram, Summary).
UnknownType
The parser emitted a metric type that is not recognised at all.
ValueMismatch
The value in the exposition does not match the declared metric type.
UnknownValue
The value is of an unknown/unrecognised kind.
LabelConversion
The label set could not be converted (e.g. invalid label name or value).
CollectionError
A structural error when assembling collections from parsed data.
Trait Implementations§
Source§impl Clone for PrometheusDeserializationError
impl Clone for PrometheusDeserializationError
Source§fn clone(&self) -> PrometheusDeserializationError
fn clone(&self) -> PrometheusDeserializationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Error for PrometheusDeserializationError
impl Error for PrometheusDeserializationError
1.30.0 · 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()
Source§impl From<Error> for PrometheusDeserializationError
impl From<Error> for PrometheusDeserializationError
Source§fn from(error: MetricCollectionError) -> Self
fn from(error: MetricCollectionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for PrometheusDeserializationError
impl From<Error> for PrometheusDeserializationError
Source§fn from(error: SampleCollectionError) -> Self
fn from(error: SampleCollectionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrometheusDeserializationError
impl RefUnwindSafe for PrometheusDeserializationError
impl Send for PrometheusDeserializationError
impl Sync for PrometheusDeserializationError
impl Unpin for PrometheusDeserializationError
impl UnsafeUnpin for PrometheusDeserializationError
impl UnwindSafe for PrometheusDeserializationError
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