pub async fn accessible_to_cache_item(
accessible: &AccessibleProxy<'_>,
cache: Weak<Cache>,
) -> OdiliaResult<CacheItem>Expand description
Convert an atspi::accessible::AccessibleProxy into a crate::CacheItem.
This runs a bunch of long-awaiting code and can take quite some time; use this sparingly.
This takes most properties and some function calls through the AccessibleProxy structure and generates a new CacheItem, which will be written to cache before being sent back.
ยงErrors
Will return an Err(_) variant when:
- The
cacheparameter does not reference an active cache once theWeakis upgraded to anOption<Arc<_>>. - Any of the function calls on the
accessiblefail. - Any
(String, OwnedObjectPath) -> AccessiblePrimitiveconversions fail. This should never happen, but technically it is possible.