Enum metrics_sqlite::MetricsError [−][src]
pub enum MetricsError {
DbConnectionError(ConnectionError),
MigrationError(RunMigrationsError),
QueryError(Error),
InvalidDatabasePath,
EmptyDatabase,
}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
Error if path given is invalid
Attempted to query database but found no records
Trait Implementations
impl Debug for MetricsError[src]
impl Debug for MetricsError[src]impl Display for MetricsError[src]
impl Display for MetricsError[src]impl Error for MetricsError[src]
impl Error for MetricsError[src]fn source(&self) -> Option<&(dyn Error + 'static)>[src]
fn source(&self) -> Option<&(dyn Error + 'static)>[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>[src]🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<ConnectionError> for MetricsError[src]
impl From<ConnectionError> for MetricsError[src]fn from(source: ConnectionError) -> Self[src]
fn from(source: ConnectionError) -> Self[src]Performs the conversion.
impl From<RunMigrationsError> for MetricsError[src]
impl From<RunMigrationsError> for MetricsError[src]fn from(source: RunMigrationsError) -> Self[src]
fn from(source: RunMigrationsError) -> Self[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> IntoSql for T[src]
impl<T> IntoSql for T[src]fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>, [src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>, [src]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>, [src]
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>, [src]Convert &self to an expression for Diesel’s query builder. Read more