pub trait QueryIdentityCache {
// Required methods
fn fetch_cached_inbox_ids(
&self,
identifiers: &[(String, StoredIdentityKind)],
) -> Result<HashMap<String, String>, StorageError>;
fn cache_inbox_id<S: ToString>(
&self,
kind: StoredIdentityKind,
identity: String,
inbox_id: S,
) -> Result<(), StorageError>;
}Required Methods§
Sourcefn fetch_cached_inbox_ids(
&self,
identifiers: &[(String, StoredIdentityKind)],
) -> Result<HashMap<String, String>, StorageError>
fn fetch_cached_inbox_ids( &self, identifiers: &[(String, StoredIdentityKind)], ) -> Result<HashMap<String, String>, StorageError>
Returns a HashMap of WalletAddress -> InboxId
fn cache_inbox_id<S: ToString>( &self, kind: StoredIdentityKind, identity: String, inbox_id: S, ) -> Result<(), StorageError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.