pub trait DictionaryProxyInterface: Send + Sync {
    type InsertResponseFut: Future<Output = Result<DictionaryInsertResult, Error>> + Send;
    type GetResponseFut: Future<Output = Result<DictionaryGetResult, Error>> + Send;
    type RemoveResponseFut: Future<Output = Result<DictionaryRemoveResult, Error>> + Send;
    type ReadResponseFut: Future<Output = Result<Vec<DictionaryItem>, Error>> + Send;
    type CloneResponseFut: Future<Output = Result<ClientEnd<DictionaryMarker>, Error>> + Send;
    type CopyResponseFut: Future<Output = Result<ClientEnd<DictionaryMarker>, Error>> + Send;

    // Required methods
    fn insert(&self, key: &str, value: Capability) -> Self::InsertResponseFut;
    fn get(&self, key: &str) -> Self::GetResponseFut;
    fn remove(&self, key: &str) -> Self::RemoveResponseFut;
    fn read(&self) -> Self::ReadResponseFut;
    fn clone(&self) -> Self::CloneResponseFut;
    fn copy(&self) -> Self::CopyResponseFut;
    fn enumerate(
        &self,
        contents: ServerEnd<DictionaryIteratorMarker>
    ) -> Result<(), Error>;
    fn drain(
        &self,
        contents: Option<ServerEnd<DictionaryIteratorMarker>>
    ) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

source

fn insert(&self, key: &str, value: Capability) -> Self::InsertResponseFut

source

fn get(&self, key: &str) -> Self::GetResponseFut

source

fn remove(&self, key: &str) -> Self::RemoveResponseFut

source

fn read(&self) -> Self::ReadResponseFut

source

fn clone(&self) -> Self::CloneResponseFut

source

fn copy(&self) -> Self::CopyResponseFut

source

fn enumerate( &self, contents: ServerEnd<DictionaryIteratorMarker> ) -> Result<(), Error>

source

fn drain( &self, contents: Option<ServerEnd<DictionaryIteratorMarker>> ) -> Result<(), Error>

Implementors§

source§

impl DictionaryProxyInterface for DictionaryProxy

§

type InsertResponseFut = QueryResponseFut<Result<(), DictionaryError>>

§

type GetResponseFut = QueryResponseFut<Result<Capability, DictionaryError>>

§

type RemoveResponseFut = QueryResponseFut<Result<Capability, DictionaryError>>

§

type ReadResponseFut = QueryResponseFut<Vec<DictionaryItem>>

§

type CloneResponseFut = QueryResponseFut<ClientEnd<DictionaryMarker>>

§

type CopyResponseFut = QueryResponseFut<ClientEnd<DictionaryMarker>>