fidl_fuchsia_stash

Trait StoreAccessorProxyInterface

Source
pub trait StoreAccessorProxyInterface: Send + Sync {
    type GetValueResponseFut: Future<Output = Result<Option<Box<Value>>, Error>> + Send;
    type FlushResponseFut: Future<Output = Result<StoreAccessorFlushResult, Error>> + Send;

    // Required methods
    fn get_value(&self, key: &str) -> Self::GetValueResponseFut;
    fn set_value(&self, key: &str, val: Value) -> Result<(), Error>;
    fn delete_value(&self, key: &str) -> Result<(), Error>;
    fn list_prefix(
        &self,
        prefix: &str,
        it: ServerEnd<ListIteratorMarker>,
    ) -> Result<(), Error>;
    fn get_prefix(
        &self,
        prefix: &str,
        it: ServerEnd<GetIteratorMarker>,
    ) -> Result<(), Error>;
    fn delete_prefix(&self, prefix: &str) -> Result<(), Error>;
    fn commit(&self) -> Result<(), Error>;
    fn flush(&self) -> Self::FlushResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn get_value(&self, key: &str) -> Self::GetValueResponseFut

Source

fn set_value(&self, key: &str, val: Value) -> Result<(), Error>

Source

fn delete_value(&self, key: &str) -> Result<(), Error>

Source

fn list_prefix( &self, prefix: &str, it: ServerEnd<ListIteratorMarker>, ) -> Result<(), Error>

Source

fn get_prefix( &self, prefix: &str, it: ServerEnd<GetIteratorMarker>, ) -> Result<(), Error>

Source

fn delete_prefix(&self, prefix: &str) -> Result<(), Error>

Source

fn commit(&self) -> Result<(), Error>

Source

fn flush(&self) -> Self::FlushResponseFut

Implementors§