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;
}