doc: add doc comments to FailedTo

This commit is contained in:
2025-10-09 15:24:31 +02:00
parent 4c964efd42
commit 784c171871

View File

@@ -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),
} }