2023-11-01 14:15:57 +00:00
|
|
|
use crate::storage::*;
|
|
|
|
|
|
|
|
pub struct MemCreds {}
|
|
|
|
pub struct MemStore {}
|
|
|
|
pub struct MemRef {}
|
|
|
|
pub struct MemValue {}
|
|
|
|
|
|
|
|
pub struct MemTypes {}
|
2023-11-01 15:45:29 +00:00
|
|
|
impl Sto for MemTypes {
|
|
|
|
type Builder=MemCreds;
|
2023-11-01 14:15:57 +00:00
|
|
|
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!();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|