aboutsummaryrefslogtreecommitdiff
path: root/src/storage/in_memory.rs
blob: 56df266d1cf7fe7d64f134caf4cca61bb2b6be4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
use crate::storage::*;

pub struct MemCreds {}
pub struct MemStore {}
pub struct MemRef {}
pub struct MemValue {}

pub struct MemTypes {}
impl Sto for MemTypes {
    type Builder=MemCreds;
    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!();
    }
}