Trait DictionaryProxyInterface

Source
pub trait DictionaryProxyInterface: Send + Sync {
    type GetResponseFut: Future<Output = Result<Option<Box<Capability>>, Error>> + Send;
    type RemoveResponseFut: Future<Output = Result<Option<Box<Capability>>, 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: Capability) -> 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§

Source

type GetResponseFut: Future<Output = Result<Option<Box<Capability>>, Error>> + Send

Source

type RemoveResponseFut: Future<Output = Result<Option<Box<Capability>>, Error>> + Send

Source

type LegacyExportResponseFut: Future<Output = Result<DictionaryRef, Error>> + Send

Required Methods§

Source

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

Source

fn insert(&self, key: &str, capability: Capability) -> 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§

Source§

impl DictionaryProxyInterface for DictionaryProxy

Source§

type GetResponseFut = QueryResponseFut<Option<Box<Capability>>>

Source§

type RemoveResponseFut = QueryResponseFut<Option<Box<Capability>>>

Source§

type LegacyExportResponseFut = QueryResponseFut<DictionaryRef>