fidl_examples_keyvaluestore_addreaditem

Trait StoreProxyInterface

Source
pub trait StoreProxyInterface: Send + Sync {
    type WriteItemResponseFut: Future<Output = Result<StoreWriteItemResult, Error>> + Send;
    type ReadItemResponseFut: Future<Output = Result<StoreReadItemResult, Error>> + Send;

    // Required methods
    fn write_item(&self, attempt: &Item) -> Self::WriteItemResponseFut;
    fn read_item(&self, key: &str) -> Self::ReadItemResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn write_item(&self, attempt: &Item) -> Self::WriteItemResponseFut

Source

fn read_item(&self, key: &str) -> Self::ReadItemResponseFut

Implementors§