aboutsummaryrefslogtreecommitdiff
path: root/src/storage
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-17 12:15:44 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-17 12:15:44 +0100
commit4a33ac2265dae0e8fd1f7fbaec54ab7120334cbe (patch)
tree6b9bbbda40d64305c6e452af38cba4daed254105 /src/storage
parent7eb690e49dd995663e8ea35b1a1f5b14584b4509 (diff)
downloadaerogramme-4a33ac2265dae0e8fd1f7fbaec54ab7120334cbe.tar.gz
aerogramme-4a33ac2265dae0e8fd1f7fbaec54ab7120334cbe.zip
incoming has been fully ported
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/garage.rs6
-rw-r--r--src/storage/in_memory.rs6
-rw-r--r--src/storage/mod.rs3
3 files changed, 14 insertions, 1 deletions
diff --git a/src/storage/garage.rs b/src/storage/garage.rs
index d6ac7ac..f458aeb 100644
--- a/src/storage/garage.rs
+++ b/src/storage/garage.rs
@@ -67,6 +67,12 @@ impl IRowRef for GrgRef {
}
}
+impl std::fmt::Debug for GrgRef {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ unimplemented!();
+ }
+}
+
impl IRowValue for GrgValue {
fn to_ref(&self) -> RowRef {
unimplemented!();
diff --git a/src/storage/in_memory.rs b/src/storage/in_memory.rs
index 0bdf9b1..20f96a4 100644
--- a/src/storage/in_memory.rs
+++ b/src/storage/in_memory.rs
@@ -72,6 +72,12 @@ impl IRowRef for MemRef {
}
}
+impl std::fmt::Debug for MemRef {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ unimplemented!();
+ }
+}
+
impl IRowValue for MemValue {
fn to_ref(&self) -> RowRef {
unimplemented!();
diff --git a/src/storage/mod.rs b/src/storage/mod.rs
index c9a49c5..08ccfec 100644
--- a/src/storage/mod.rs
+++ b/src/storage/mod.rs
@@ -91,7 +91,7 @@ pub trait IRowStore
}
pub type RowStore = Box<dyn IRowStore + Sync + Send>;
-pub trait IRowRef
+pub trait IRowRef: std::fmt::Debug
{
/*fn clone_boxed(&self) -> RowRef;*/
fn to_orphan(&self) -> OrphanRowRef;
@@ -138,6 +138,7 @@ pub type BlobRef = Box<dyn IBlobRef + Send + Sync>;
pub trait IBlobValue {
fn to_ref(&self) -> BlobRef;
fn get_meta(&self, key: &str) -> Option<&[u8]>;
+ fn set_meta(&mut self, key: &str, val: &str);
fn content(&self) -> Option<&[u8]>;
fn push(&self) -> AsyncResult<()>;
}