aboutsummaryrefslogtreecommitdiff
path: root/src/storage
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-21 15:09:39 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-21 15:09:39 +0100
commita7c9d554f6523c384cc0a14a789e0c8d9070e605 (patch)
tree8c3e84cd0d20552e917ac5eae162323425e90a90 /src/storage
parent6e8b2cfc9ff1abf2b4844884d9ebd807d37bd76e (diff)
downloadaerogramme-a7c9d554f6523c384cc0a14a789e0c8d9070e605.tar.gz
aerogramme-a7c9d554f6523c384cc0a14a789e0c8d9070e605.zip
fix login mod
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/garage.rs2
-rw-r--r--src/storage/in_memory.rs2
-rw-r--r--src/storage/mod.rs9
3 files changed, 3 insertions, 10 deletions
diff --git a/src/storage/garage.rs b/src/storage/garage.rs
index 0a22928..d9c768f 100644
--- a/src/storage/garage.rs
+++ b/src/storage/garage.rs
@@ -53,7 +53,7 @@ impl IRowRef for GrgRef {
unimplemented!();
}
- fn set_value(&self, content: Vec<u8>) -> RowValue {
+ fn set_value(&self, content: &[u8]) -> RowValue {
unimplemented!();
}
fn fetch(&self) -> AsyncResult<RowValue> {
diff --git a/src/storage/in_memory.rs b/src/storage/in_memory.rs
index 49169d7..5ba9461 100644
--- a/src/storage/in_memory.rs
+++ b/src/storage/in_memory.rs
@@ -55,7 +55,7 @@ impl IRowRef for MemRef {
unimplemented!();
}*/
- fn set_value(&self, content: Vec<u8>) -> RowValue {
+ fn set_value(&self, content: &[u8]) -> RowValue {
unimplemented!();
}
fn fetch(&self) -> AsyncResult<RowValue> {
diff --git a/src/storage/mod.rs b/src/storage/mod.rs
index 324e6b9..c002278 100644
--- a/src/storage/mod.rs
+++ b/src/storage/mod.rs
@@ -95,21 +95,14 @@ pub type RowStore = Box<dyn IRowStore + Sync + Send>;
pub trait IRowRef: std::fmt::Debug
{
- /*fn clone_boxed(&self) -> RowRef;*/
fn to_orphan(&self) -> OrphanRowRef;
fn key(&self) -> (&str, &str);
- fn set_value(&self, content: Vec<u8>) -> RowValue;
+ fn set_value(&self, content: &[u8]) -> RowValue;
fn fetch(&self) -> AsyncResult<RowValue>;
fn rm(&self) -> AsyncResult<()>;
fn poll(&self) -> AsyncResult<RowValue>;
}
pub type RowRef = Box<dyn IRowRef + Send + Sync>;
-/*impl Clone for RowRef {
- fn clone(&self) -> Self {
- return self.clone_boxed()
- }
-}*/
-
pub trait IRowValue: std::fmt::Debug
{