Struct atspi_common::events::EventBody
source · pub struct EventBody<'a, T> {
pub kind: T,
pub detail1: i32,
pub detail2: i32,
pub any_data: Value<'a>,
pub properties: HashMap<&'a str, Value<'a>>,
}
Expand description
A borrowed body for events.
Fields§
§kind: T
A generic “kind” type, defined by AT-SPI:
usually a &'a str
, but can be another type like crate::state::State
.
detail1: i32
Generic first detail defined by AT-SPI.
detail2: i32
Generic second detail defined by AT-SPI.
any_data: Value<'a>
Generic “any_data” field defined in AT-SPI. Can contain any type.
properties: HashMap<&'a str, Value<'a>>
Map of string to an any type. This is not used for anything, but it is defined by AT-SPI.
Trait Implementations§
source§impl<'de: 'a, 'a, T> Deserialize<'de> for EventBody<'a, T>where
T: Deserialize<'de>,
impl<'de: 'a, 'a, T> Deserialize<'de> for EventBody<'a, T>where T: Deserialize<'de>,
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
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for EventBody<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for EventBody<'a, T>where T: Send,
impl<'a, T> Sync for EventBody<'a, T>where T: Sync,
impl<'a, T> Unpin for EventBody<'a, T>where T: Unpin,
impl<'a, T> UnwindSafe for EventBody<'a, T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for Twhere T: Type + Deserialize<'de> + ?Sized,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
source§fn deserializer_for_signature<S>(
signature: S
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>where
S: TryInto<Signature<'de>>,
<S as TryInto<Signature<'de>>>::Error: Into<Error>,
fn deserializer_for_signature<S>( signature: S ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>where S: TryInto<Signature<'de>>, <S as TryInto<Signature<'de>>>::Error: Into<Error>,
Get a deserializer compatible with this signature.
source§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere T: Type + ?Sized,
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more