pub enum Error {
Io(Error),
Postgres(Error),
Deadpool(PoolError<Error>),
Sqlite(Error),
NoRow,
MissingId,
Mutex,
SyncMode,
Custom(String),
}Expand description
Error from this library
Variants§
Io(Error)
Error de IO estándar de Rust
Postgres(Error)
Error de Postgresql
Deadpool(PoolError<Error>)
Error del pool de conexiones
Sqlite(Error)
Mutex lock error, only available in sync mode
NoRow
An sqlite row was expected, but somehow, none was received
MissingId
Implies that an operation that requires an ID is not present. Appears when using a rowid.
Mutex
Mutex lock error
SyncMode
Implies an async trait was used when sync feature is enabled
Custom(String)
Custom error with custom message
Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<T> From<PoisonError<T>> for Error
impl<T> From<PoisonError<T>> for Error
source§fn from(_input: PoisonError<T>) -> Self
fn from(_input: PoisonError<T>) -> Self
Converts to this type from the input type.