aboutsummaryrefslogtreecommitdiff
path: root/src/storage/mod.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-21 09:56:31 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-21 09:56:31 +0100
commit6e8b2cfc9ff1abf2b4844884d9ebd807d37bd76e (patch)
tree2eb6dc92646f97fe4452485f4dbeac588c80e5a4 /src/storage/mod.rs
parentbd6c3464e609dc76e119457ea583af0f08eeabb4 (diff)
downloadaerogramme-6e8b2cfc9ff1abf2b4844884d9ebd807d37bd76e.tar.gz
aerogramme-6e8b2cfc9ff1abf2b4844884d9ebd807d37bd76e.zip
rewrite CryptoKeys with Storage abstraction
Diffstat (limited to 'src/storage/mod.rs')
-rw-r--r--src/storage/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/storage/mod.rs b/src/storage/mod.rs
index c948a08..324e6b9 100644
--- a/src/storage/mod.rs
+++ b/src/storage/mod.rs
@@ -44,6 +44,7 @@ impl std::fmt::Display for StorageError {
match self {
Self::NotFound => f.write_str("Item not found"),
Self::Internal => f.write_str("An internal error occured"),
+ Self::IncompatibleOrphan => f.write_str("Incompatible orphan"),
}
}
}
@@ -110,7 +111,7 @@ pub type RowRef = Box<dyn IRowRef + Send + Sync>;
}*/
-pub trait IRowValue
+pub trait IRowValue: std::fmt::Debug
{
fn to_ref(&self) -> RowRef;
fn content(&self) -> ConcurrentValues;