doc: add doc comments to FailedTo
This commit is contained in:
@@ -1,12 +1,19 @@
|
|||||||
use crate::*;
|
use crate::*;
|
||||||
|
|
||||||
|
/// Represents the possible failures that can occur in the library.
|
||||||
#[derive(Debug, PartialEq, PartialOrd, Eq, Ord, Clone, Copy, Hash)]
|
#[derive(Debug, PartialEq, PartialOrd, Eq, Ord, Clone, Copy, Hash)]
|
||||||
pub enum E {
|
pub enum E {
|
||||||
|
/// Failed to initialize the database.
|
||||||
InitDatabase,
|
InitDatabase,
|
||||||
|
/// Failed to load data from the database.
|
||||||
LoadFromDB,
|
LoadFromDB,
|
||||||
|
/// Failed to map a database row to an attribute.
|
||||||
MapAttribute,
|
MapAttribute,
|
||||||
|
/// Failed to map a database row to an entity.
|
||||||
MapEntity,
|
MapEntity,
|
||||||
|
/// Failed to persist the catalog to the database.
|
||||||
PersistCatalog,
|
PersistCatalog,
|
||||||
|
/// A failure originating from the underlying SQLite implementation.
|
||||||
SQLite(sqlite::FailedTo),
|
SQLite(sqlite::FailedTo),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user