pub struct AccessiblePrimitive {
pub id: AccessibleId,
pub sender: String,
}Expand description
A struct which represents the bare minimum of an accessible for purposes of caching. This makes some possibly eronious assumptions about what the sender is.
Fields§
§id: AccessibleIdThe accessible ID in /org/a11y/atspi/accessible/XYZ; note that XYZ may be equal to any positive number, 0, “null”, or “root”.
sender: StringAssuming that the sender is “:x.y”, this stores the (x,y) portion of this sender.
Implementations§
Source§impl AccessiblePrimitive
impl AccessiblePrimitive
Sourcepub async fn into_accessible<'a>(
self,
conn: &Connection,
) -> Result<AccessibleProxy<'a>>
pub async fn into_accessible<'a>( self, conn: &Connection, ) -> Result<AccessibleProxy<'a>>
Convert into an atspi::accessible::AccessibleProxy. Must be async because the creation of an async proxy requires async itself.
§Errors
Will return a zbus::Error in the case of an invalid destination, path, or failure to create a Proxy from those properties.
Sourcepub async fn into_text<'a>(self, conn: &Connection) -> Result<TextProxy<'a>>
pub async fn into_text<'a>(self, conn: &Connection) -> Result<TextProxy<'a>>
Convert into an atspi::text::TextProxy. Must be async because the creation of an async proxy requires async itself.
§Errors
Will return a zbus::Error in the case of an invalid destination, path, or failure to create a Proxy from those properties.
Sourcepub fn from_event<T: GenericEvent>(
event: &T,
) -> Result<Self, AccessiblePrimitiveConversionError>
pub fn from_event<T: GenericEvent>( event: &T, ) -> Result<Self, AccessiblePrimitiveConversionError>
Turns any atspi::event type into an AccessiblePrimtive, the basic type which is used for keys in the cache.
§Errors
The errors are self-explanitory variants of the odilia_common::errors::AccessiblePrimitiveConversionError.
Trait Implementations§
Source§impl Clone for AccessiblePrimitive
impl Clone for AccessiblePrimitive
Source§fn clone(&self) -> AccessiblePrimitive
fn clone(&self) -> AccessiblePrimitive
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more