aerogramme/src/storage/in_memory.rs

48 lines
979 B
Rust
Raw Normal View History

2023-11-01 14:15:57 +00:00
use crate::storage::*;
pub struct MemCreds {}
pub struct MemStore {}
pub struct MemRef {}
pub struct MemValue {}
2023-11-02 08:57:58 +00:00
impl IRowBuilder for MemCreds {
2023-11-01 14:15:57 +00:00
fn row_store(&self) -> MemStore {
unimplemented!();
}
}
2023-11-02 08:57:58 +00:00
impl IRowStore for MemStore {
2023-11-01 14:15:57 +00:00
fn new_row(&self, partition: &str, sort: &str) -> MemRef {
unimplemented!();
}
}
2023-11-02 08:57:58 +00:00
impl IRowRef for MemRef {
2023-11-01 14:15:57 +00:00
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!();
}
}
2023-11-02 08:57:58 +00:00
impl IRowValue for MemValue {
2023-11-01 14:15:57 +00:00
fn to_ref(&self) -> MemRef {
unimplemented!();
}
fn content(&self) -> ConcurrentValues {
unimplemented!();
}
async fn push(&self) -> Result<(), Error> {
unimplemented!();
}
}