aboutsummaryrefslogtreecommitdiff
path: root/src/storage/mod.rs
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/mod.rs
parent7eb690e49dd995663e8ea35b1a1f5b14584b4509 (diff)
downloadaerogramme-4a33ac2265dae0e8fd1f7fbaec54ab7120334cbe.tar.gz
aerogramme-4a33ac2265dae0e8fd1f7fbaec54ab7120334cbe.zip
incoming has been fully ported
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 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<()>;
}