aboutsummaryrefslogtreecommitdiff
path: root/src/storage/in_memory.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-02 15:28:19 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-02 15:28:19 +0100
commita65f5b25894faa9802d274beb394f40062c65bae (patch)
tree990e3f3cb1a9d9eb3bbaa62bc16049ef9524d6e6 /src/storage/in_memory.rs
parent1e192f93d5bf544c82fe91fb799d77e8b5d53afe (diff)
downloadaerogramme-a65f5b25894faa9802d274beb394f40062c65bae.tar.gz
aerogramme-a65f5b25894faa9802d274beb394f40062c65bae.zip
WIP rewrite mail/incoming
Diffstat (limited to 'src/storage/in_memory.rs')
-rw-r--r--src/storage/in_memory.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/storage/in_memory.rs b/src/storage/in_memory.rs
index 19b55b9..144a52f 100644
--- a/src/storage/in_memory.rs
+++ b/src/storage/in_memory.rs
@@ -28,6 +28,10 @@ impl IRowStore for MemStore {
}
impl IRowRef for MemRef {
+ fn clone_boxed(&self) -> RowRef {
+ unimplemented!();
+ }
+
fn set_value(&self, content: Vec<u8>) -> RowValue {
unimplemented!();
}
@@ -37,9 +41,10 @@ impl IRowRef for MemRef {
fn rm(&self) -> AsyncResult<()> {
unimplemented!();
}
- fn poll(&self) -> AsyncResult<Option<RowValue>> {
+ fn poll(&self) -> AsyncResult<RowValue> {
async {
- Ok(None)
+ let rv: RowValue = Box::new(MemValue{});
+ Ok(rv)
}.boxed()
}
}