Enum metrics_sqlite::MetricsError
source · [−]pub enum MetricsError {
DbConnectionError(ConnectionError),
MigrationError(RunMigrationsError),
QueryError(Error),
InvalidDatabasePath,
EmptyDatabase,
KeyNotFound(String),
}
Expand description
Error type for any db/vitals related errors
Variants
DbConnectionError(ConnectionError)
Error with database
MigrationError(RunMigrationsError)
Error migrating database
QueryError(Error)
Error querying metrics DB
InvalidDatabasePath
Error if path given is invalid
EmptyDatabase
Attempted to query database but found no records
KeyNotFound(String)
Given metric key name wasn’t found in the DB
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for MetricsError
impl Send for MetricsError
impl Sync for MetricsError
impl Unpin for MetricsError
impl !UnwindSafe for MetricsError
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more