Struct odilia_cache::AccessiblePrimitive
source · 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
pub async fn into_accessible<'a>( self, conn: &Connection ) -> Result<AccessibleProxy<'a>>
pub async fn into_text<'a>(self, conn: &Connection) -> Result<TextProxy<'a>>
pub fn from_event<T: GenericEvent>(event: &T) -> Result<Self, OdiliaError>
Trait Implementations§
source§impl Clone for AccessiblePrimitive
impl Clone for AccessiblePrimitive
source§fn clone(&self) -> AccessiblePrimitive
fn clone(&self) -> AccessiblePrimitive
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AccessiblePrimitive
impl Debug for AccessiblePrimitive
source§impl<'de> Deserialize<'de> for AccessiblePrimitive
impl<'de> Deserialize<'de> for AccessiblePrimitive
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<AccessiblePrimitive> for CacheRef
impl From<AccessiblePrimitive> for CacheRef
source§fn from(value: AccessiblePrimitive) -> Self
fn from(value: AccessiblePrimitive) -> Self
Converts to this type from the input type.
source§impl Hash for AccessiblePrimitive
impl Hash for AccessiblePrimitive
source§impl PartialEq<AccessiblePrimitive> for AccessiblePrimitive
impl PartialEq<AccessiblePrimitive> for AccessiblePrimitive
source§fn eq(&self, other: &AccessiblePrimitive) -> bool
fn eq(&self, other: &AccessiblePrimitive) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AccessiblePrimitive
impl Serialize for AccessiblePrimitive
source§impl<'a> TryFrom<&AccessibleProxy<'a>> for AccessiblePrimitive
impl<'a> TryFrom<&AccessibleProxy<'a>> for AccessiblePrimitive
§type Error = AccessiblePrimitiveConversionError
type Error = AccessiblePrimitiveConversionError
The type returned in the event of a conversion error.
source§fn try_from(
accessible: &AccessibleProxy<'_>
) -> Result<AccessiblePrimitive, Self::Error>
fn try_from( accessible: &AccessibleProxy<'_> ) -> Result<AccessiblePrimitive, Self::Error>
Performs the conversion.
source§impl TryFrom<(OwnedUniqueName, OwnedObjectPath)> for AccessiblePrimitive
impl TryFrom<(OwnedUniqueName, OwnedObjectPath)> for AccessiblePrimitive
§type Error = AccessiblePrimitiveConversionError
type Error = AccessiblePrimitiveConversionError
The type returned in the event of a conversion error.
source§impl TryFrom<(String, AccessibleId)> for AccessiblePrimitive
impl TryFrom<(String, AccessibleId)> for AccessiblePrimitive
§type Error = AccessiblePrimitiveConversionError
type Error = AccessiblePrimitiveConversionError
The type returned in the event of a conversion error.
source§fn try_from(
so: (String, AccessibleId)
) -> Result<AccessiblePrimitive, Self::Error>
fn try_from( so: (String, AccessibleId) ) -> Result<AccessiblePrimitive, Self::Error>
Performs the conversion.
source§impl<'a> TryFrom<(String, ObjectPath<'a>)> for AccessiblePrimitive
impl<'a> TryFrom<(String, ObjectPath<'a>)> for AccessiblePrimitive
§type Error = OdiliaError
type Error = OdiliaError
The type returned in the event of a conversion error.
source§impl TryFrom<(String, OwnedObjectPath)> for AccessiblePrimitive
impl TryFrom<(String, OwnedObjectPath)> for AccessiblePrimitive
§type Error = AccessiblePrimitiveConversionError
type Error = AccessiblePrimitiveConversionError
The type returned in the event of a conversion error.
source§impl TryFrom<Accessible> for AccessiblePrimitive
impl TryFrom<Accessible> for AccessiblePrimitive
§type Error = AccessiblePrimitiveConversionError
type Error = AccessiblePrimitiveConversionError
The type returned in the event of a conversion error.
source§fn try_from(
atspi_accessible: Accessible
) -> Result<AccessiblePrimitive, Self::Error>
fn try_from( atspi_accessible: Accessible ) -> Result<AccessiblePrimitive, Self::Error>
Performs the conversion.
source§impl<'a> TryFrom<AccessibleProxy<'a>> for AccessiblePrimitive
impl<'a> TryFrom<AccessibleProxy<'a>> for AccessiblePrimitive
§type Error = AccessiblePrimitiveConversionError
type Error = AccessiblePrimitiveConversionError
The type returned in the event of a conversion error.
source§fn try_from(
accessible: AccessibleProxy<'_>
) -> Result<AccessiblePrimitive, Self::Error>
fn try_from( accessible: AccessibleProxy<'_> ) -> Result<AccessiblePrimitive, Self::Error>
Performs the conversion.