DictionaryProxyInterface

Trait DictionaryProxyInterface 

Source
pub trait DictionaryProxyInterface: Send + Sync {
    type GetResponseFut: Future<Output = Result<Option<Box<CapabilityDeprecated>>, Error>> + Send;
    type RemoveResponseFut: Future<Output = Result<Option<Box<CapabilityDeprecated>>, Error>> + Send;
    type LegacyExportResponseFut: Future<Output = Result<DictionaryRef, Error>> + Send;

    // Required methods
    fn clone(&self, request: ServerEnd<CloneableMarker>) -> Result<(), Error>;
    fn insert(
        &self,
        key: &str,
        capability: CapabilityDeprecated,
    ) -> Result<(), Error>;
    fn get(&self, key: &str) -> Self::GetResponseFut;
    fn remove(&self, key: &str) -> Self::RemoveResponseFut;
    fn iterate_keys(
        &self,
        key_iterator: ServerEnd<DictionaryKeyIteratorMarker>,
    ) -> Result<(), Error>;
    fn legacy_export(&self) -> Self::LegacyExportResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn clone(&self, request: ServerEnd<CloneableMarker>) -> Result<(), Error>

Source

fn insert( &self, key: &str, capability: CapabilityDeprecated, ) -> Result<(), Error>

Source

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

Source

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

Source

fn iterate_keys( &self, key_iterator: ServerEnd<DictionaryKeyIteratorMarker>, ) -> Result<(), Error>

Source

fn legacy_export(&self) -> Self::LegacyExportResponseFut

Implementors§