aboutsummaryrefslogtreecommitdiff
path: root/src/storage/in_memory.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-01 15:15:57 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-01 15:15:57 +0100
commit92fea414d9d113761b788e409a025ad9cff06071 (patch)
tree978d6b05eedd4e00359df0dfa6e2b91ed72a59ea /src/storage/in_memory.rs
parentc3bb2b62a862c09d52226a82a032061676a0cb77 (diff)
downloadaerogramme-92fea414d9d113761b788e409a025ad9cff06071.tar.gz
aerogramme-92fea414d9d113761b788e409a025ad9cff06071.zip
v2 api storage
Diffstat (limited to 'src/storage/in_memory.rs')
-rw-r--r--src/storage/in_memory.rs54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/storage/in_memory.rs b/src/storage/in_memory.rs
index e69de29..a2e9e96 100644
--- a/src/storage/in_memory.rs
+++ b/src/storage/in_memory.rs
@@ -0,0 +1,54 @@
+use crate::storage::*;
+
+pub struct MemCreds {}
+pub struct MemStore {}
+pub struct MemRef {}
+pub struct MemValue {}
+
+pub struct MemTypes {}
+impl RowRealization for MemTypes {
+ type Store=MemStore;
+ type Ref=MemRef;
+ type Value=MemValue;
+}
+
+impl RowBuilder<MemTypes> for MemCreds {
+ fn row_store(&self) -> MemStore {
+ unimplemented!();
+ }
+}
+
+impl RowStore<MemTypes> for MemStore {
+ fn new_row(&self, partition: &str, sort: &str) -> MemRef {
+ unimplemented!();
+ }
+}
+
+impl RowRef<MemTypes> for MemRef {
+ fn set_value(&self, content: Vec<u8>) -> MemValue {
+ unimplemented!();
+ }
+ async fn fetch(&self) -> Result<MemValue, Error> {
+ unimplemented!();
+ }
+ async fn rm(&self) -> Result<(), Error> {
+ unimplemented!();
+ }
+ async fn poll(&self) -> Result<Option<MemValue>, Error> {
+ unimplemented!();
+ }
+}
+
+impl RowValue<MemTypes> for MemValue {
+ fn to_ref(&self) -> MemRef {
+ unimplemented!();
+ }
+ fn content(&self) -> ConcurrentValues {
+ unimplemented!();
+ }
+ async fn push(&self) -> Result<(), Error> {
+ unimplemented!();
+ }
+}
+
+