pub enum MetricSourceError {
ErrorRetrievingCounters,
InitTimeout(Duration),
SourceError(Box<dyn Error + Send + Sync>),
}Expand description
Errors that can occur when reading or aggregating metrics from a source.
This enum is used by all metric sources implementing MetricReader
to signal failures during measurements.
Variants§
ErrorRetrievingCounters
The source failed to retrieve its internal counters.
InitTimeout(Duration)
The initialization of the source lasted more than the authorized time.
SourceError(Box<dyn Error + Send + Sync>)
Error propagated from a custom metric source.
Trait Implementations§
Source§impl Debug for MetricSourceError
impl Debug for MetricSourceError
Source§impl Display for MetricSourceError
impl Display for MetricSourceError
Source§impl Error for MetricSourceError
impl Error for MetricSourceError
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<MetricSourceError> for JouleProfilerError
impl From<MetricSourceError> for JouleProfilerError
Source§fn from(source: MetricSourceError) -> Self
fn from(source: MetricSourceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MetricSourceError
impl !UnwindSafe for MetricSourceError
impl Freeze for MetricSourceError
impl Send for MetricSourceError
impl Sync for MetricSourceError
impl Unpin for MetricSourceError
impl UnsafeUnpin for MetricSourceError
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